Package inra.ijpb.binary.distmap

Computations of distance maps on binary images, using chamfer distances (integer approximation of Euclidean distances).

See: Description

Package inra.ijpb.binary.distmap Description

Computations of distance maps on binary images, using chamfer distances (integer approximation of Euclidean distances).

Contains implementations for computation using shorts or float values, for 3x3 and 5x5 neighborhoods.

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);
 
See Also:
BinaryImages.distanceMap(ImageProcessor, short[], boolean), BinaryImages.distanceMap(ImageProcessor, float[], boolean), DistanceTransform