public interface DistanceTransform extends Algo
Example of use:
short[] shortWeights = ChamferWeights.CHESSKNIGHT.getShortWeights();
boolean normalize = true;
DistanceTransform dt = new DistanceTransform5x5Short(shortWeights, normalize);
ImageProcessor result = dt.distanceMap(inputImage);
// or:
ImagePlus resultPlus = BinaryImages.distanceMap(imagePlus, shortWeights, normalize);
Modifier and Type | Method and Description |
---|---|
ij.process.ImageProcessor |
distanceMap(ij.process.ImageProcessor image)
Computes the distance map from a binary image processor.
|
addAlgoListener, removeAlgoListener
ij.process.ImageProcessor distanceMap(ij.process.ImageProcessor image)
image
- a binary image with white pixels (255) as foregroundCopyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.