Package inra.ijpb.label.filter
Class ChamferLabelErosion3DShort
java.lang.Object
inra.ijpb.algo.AlgoStub
inra.ijpb.label.filter.ChamferLabelErosion3DShort
- All Implemented Interfaces:
Algo
public class ChamferLabelErosion3DShort extends AlgoStub
Implementation of morphological erosion for 3D label images / label maps.
Can be applied to label maps encoded with 8 or 16 bits integers, or 32 bit
floats.
- Author:
- dlegland
-
Constructor Summary
Constructors Constructor Description ChamferLabelErosion3DShort(ChamferMask3D mask, double radius)
Creates a new operator for erosion of label images based on Chamfer masks. -
Method Summary
Modifier and Type Method Description ij.ImageStack
process(ij.ImageStack image)
Apply morphological erosion of the labels within the specified input image.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
-
ChamferLabelErosion3DShort
Creates a new operator for erosion of label images based on Chamfer masks. The principle is to compute for each non-zero voxel (label), the distance to the nearest background voxel, and to apply a threshold on this distance map.- Parameters:
mask
- the Chamfer mask use to propagate distancesradius
- the radius used to compute erosion from distance map.
-
-
Method Details
-
process
public ij.ImageStack process(ij.ImageStack image)Apply morphological erosion of the labels within the specified input image.- Parameters:
image
- the label map to erode- Returns:
- the result of erosion.
-