Package inra.ijpb.binary.distmap
Interface DistanceTransform3D
- All Superinterfaces:
Algo
- All Known Subinterfaces:
ChamferDistanceTransform3D
- All Known Implementing Classes:
ChamferDistanceTransform3DFloat,ChamferDistanceTransform3DShort,DistanceTransform3D4WeightsFloat,DistanceTransform3D4WeightsShort,DistanceTransform3DFloat,DistanceTransform3DShort
public interface DistanceTransform3D extends Algo
Interface for computing distance maps from binary 3D images.
-
Method Summary
Modifier and Type Method Description ij.ImageStackdistanceMap(ij.ImageStack image)Computes the distance map from a 3D binary image.Methods inherited from interface inra.ijpb.algo.Algo
addAlgoListener, removeAlgoListener
-
Method Details
-
distanceMap
ij.ImageStack distanceMap(ij.ImageStack image)Computes the distance map from a 3D binary image. Distance is computed for each foreground (white) pixel, as the chamfer distance to the nearest background (black) pixel.- Parameters:
image- a 3D binary image with white pixels (255) as foreground- Returns:
- a new 3D image containing:
- 0 for each background pixel
- the distance to the nearest background pixel otherwise
-