@Deprecated public class DistanceTransform3x3Short extends AlgoStub implements DistanceTransform
Example of use:
short[] shortWeights = ChamferWeights.BORGEFORS.getShortWeights();
boolean normalize = true;
DistanceTransform dt = new DistanceTransform3x3Short(shortWeights, normalize);
ImageProcessor result = dt.distanceMap(inputImage);
// or:
ImagePlus resultPlus = BinaryImages.distanceMap(imagePlus, shortWeights, normalize);
BinaryImages.distanceMap(ImageProcessor, short[], boolean),
DistanceTransform,
DistanceTransform3x3Float| Constructor and Description |
|---|
DistanceTransform3x3Short(ChamferWeights weights,
boolean normalize)
Deprecated.
Constructor specifying the chamfer weights and the optional
normalization.
|
DistanceTransform3x3Short(short[] weights)
Deprecated.
Default constructor that specifies the chamfer weights.
|
DistanceTransform3x3Short(short[] weights,
boolean normalize)
Deprecated.
Constructor specifying the chamfer weights and the optional
normalization.
|
| Modifier and Type | Method and Description |
|---|---|
ij.process.ShortProcessor |
distanceMap(ij.process.ImageProcessor labelImage)
Deprecated.
Computes the distance map of the distance to the nearest pixel with a different value.
|
addAlgoListener, fireProgressChanged, fireProgressChanged, fireStatusChanged, fireStatusChanged, removeAlgoListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddAlgoListener, removeAlgoListenerpublic DistanceTransform3x3Short(short[] weights)
weights - an array of two weights for orthogonal and diagonal directionspublic DistanceTransform3x3Short(ChamferWeights weights, boolean normalize)
weights - an array of two weights for orthogonal and diagonal directionsnormalize - flag indicating whether the final distance map should be
normalized by the first weightpublic DistanceTransform3x3Short(short[] weights,
boolean normalize)
weights - an array of two weights for orthogonal and diagonal directionsnormalize - flag indicating whether the final distance map should be
normalized by the first weightpublic ij.process.ShortProcessor distanceMap(ij.process.ImageProcessor labelImage)
distanceMap in interface DistanceTransformlabelImage - a label image with black pixels (0) as foregroundCopyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.