Class ChamferLabelDilation3DShort

java.lang.Object
inra.ijpb.algo.AlgoStub
inra.ijpb.label.filter.ChamferLabelDilation3DShort
All Implemented Interfaces:
Algo

public class ChamferLabelDilation3DShort
extends AlgoStub
Apply a dilation by a specified radius to each label of a label map by constraining the dilation. Labels can not dilate over existing labels.
Author:
dlegland
See Also:
ChamferMask3D, ChamferLabelDilation2DShort
  • Constructor Summary

    Constructors
    Constructor Description
    ChamferLabelDilation3DShort​(ChamferMask3D mask, double radius)
    Creates a new 3D image for dilating labels using the specified chamfer mask, using 16-bits integer computation.
  • Method Summary

    Modifier and Type Method Description
    ij.ImageStack process​(ij.ImageStack labelImage)
    Computes dilation of labels within label image by a specified radius.

    Methods inherited from class inra.ijpb.algo.AlgoStub

    addAlgoListener, removeAlgoListener

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ChamferLabelDilation3DShort

      public ChamferLabelDilation3DShort​(ChamferMask3D mask, double radius)
      Creates a new 3D image for dilating labels using the specified chamfer mask, using 16-bits integer computation.
      Parameters:
      mask - the Chamfer mask to use.
      radius - the radius of dilation of labels. In practice, the distance is propagated up to radius + 0.5.
  • Method Details

    • process

      public ij.ImageStack process​(ij.ImageStack labelImage)
      Computes dilation of labels within label image by a specified radius. Labels can not dilate over existing labels. The function returns a new ImageStack the same size and the same type as the input, with values greater than or equal to zero.
      Parameters:
      labelImage - the original label map
      Returns:
      a new label image where each label is dilated over background pixels.