Package inra.ijpb.label.distmap
Interface DistanceTransform2D
- All Superinterfaces:
Algo
- All Known Subinterfaces:
ChamferDistanceTransform2D
- All Known Implementing Classes:
ChamferDistanceTransform2DFloat
,ChamferDistanceTransform2DShort
public interface DistanceTransform2D extends Algo
Interface for computing distance maps for 2D label images.
-
Method Summary
Modifier and Type Method Description ij.process.ImageProcessor
distanceMap(ij.process.ImageProcessor image)
Computes the distance map from a label image.Methods inherited from interface inra.ijpb.algo.Algo
addAlgoListener, removeAlgoListener
-
Method Details
-
distanceMap
ij.process.ImageProcessor distanceMap(ij.process.ImageProcessor image)Computes the distance map from a label image. Distance is computed for each label pixel (with value greater than 0), as the chamfer distance to the nearest pixel with a different value. The other value value can be 0 (the background) or another positive integer value (corresponding to another region).- Parameters:
image
- a label map, where integer values correspond to region labels, and 0 value to background.- Returns:
- a new intensity image containing:
- 0 for each background pixel
- the distance to the nearest pixel from another region
-