Package inra.ijpb.label.distmap
Class LabelDilationShort5x5
java.lang.Object
inra.ijpb.algo.AlgoStub
inra.ijpb.label.distmap.LabelDilationShort5x5
- All Implemented Interfaces:
Algo
@Deprecated public class LabelDilationShort5x5 extends AlgoStub
Deprecated.
replaced by LabelDilation2DShort (since 1.5.0)
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.
Can be applied to label map encoded with 8 or 16 bits integers, or 32 bit
floats.
-
Constructor Summary
Constructors Constructor Description LabelDilationShort5x5(short[] weights)
Deprecated.Creates a new LabelDilation operator.LabelDilationShort5x5(ChamferWeights weights)
Deprecated.Creates a new LabelDilation operator. -
Method Summary
Modifier and Type Method Description ij.process.ImageProcessor
process(ij.process.ImageProcessor labelImage, double distMax)
Deprecated.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
-
LabelDilationShort5x5
Deprecated.Creates a new LabelDilation operator.- Parameters:
weights
- the weights to use for dilation
-
LabelDilationShort5x5
public LabelDilationShort5x5(short[] weights)Deprecated.Creates a new LabelDilation operator.- Parameters:
weights
- the weights to use for dilation
-
-
Method Details
-
process
public ij.process.ImageProcessor process(ij.process.ImageProcessor labelImage, double distMax)Deprecated.Computes dilation of labels within label image by a specified radius. Labels can not dilate over existing labels. The function returns a new ImageProcessor the same size and the same type as the input, with values greater than or equal to zero.- Parameters:
labelImage
- the original label mapdistMax
- the dilation radius, in pixels. In practice, dilation is computed with a radius +0.5.- Returns:
- a new label image where each label is dilated over background pixels.
-