Class GeodesicDistanceTransformFloatHybrid

java.lang.Object
inra.ijpb.algo.AlgoStub
inra.ijpb.binary.geodesic.GeodesicDistanceTransformFloatHybrid
All Implemented Interfaces:
Algo, GeodesicDistanceTransform

public class GeodesicDistanceTransformFloatHybrid
extends AlgoStub
implements GeodesicDistanceTransform
Computation of geodesic distances based on a chamfer mask using floating point array for storing result.
Author:
David Legland
See Also:
GeodesicDistanceTransformShortHybrid
  • Field Summary

    Fields
    Modifier and Type Field Description
    static float BACKGROUND
    The value associated to the background in the result image.
    static float MAX_DIST
    The value used to initialize the distance map, corresponding to positive infinity.
  • Constructor Summary

    Constructors
    Constructor Description
    GeodesicDistanceTransformFloatHybrid​(ChamferMask2D mask)
    Creates a new algorithm for propagating geodesic distances.
    GeodesicDistanceTransformFloatHybrid​(ChamferMask2D mask, boolean normalizeMap)
    Creates a new algorithm for propagating geodesic distances.
  • Method Summary

    Modifier and Type Method Description
    ij.process.ImageProcessor geodesicDistanceMap​(ij.process.ImageProcessor marker, ij.process.ImageProcessor labelImage)
    Computes the geodesic distance function for each pixel in mask label image, using the given binary marker image.

    Methods inherited from class inra.ijpb.algo.AlgoStub

    addAlgoListener, removeAlgoListener

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface inra.ijpb.algo.Algo

    addAlgoListener, removeAlgoListener
  • Field Details

    • MAX_DIST

      public static final float MAX_DIST
      The value used to initialize the distance map, corresponding to positive infinity.
      See Also:
      Constant Field Values
    • BACKGROUND

      public static final float BACKGROUND
      The value associated to the background in the result image.
      See Also:
      Constant Field Values
  • Constructor Details

    • GeodesicDistanceTransformFloatHybrid

      public GeodesicDistanceTransformFloatHybrid​(ChamferMask2D mask)
      Creates a new algorithm for propagating geodesic distances.
      Parameters:
      mask - the chamfer mask to use for propagating distances
    • GeodesicDistanceTransformFloatHybrid

      public GeodesicDistanceTransformFloatHybrid​(ChamferMask2D mask, boolean normalizeMap)
      Creates a new algorithm for propagating geodesic distances.
      Parameters:
      mask - the chamfer mask to use for propagating distances
      normalizeMap - the flag for normalization
  • Method Details

    • geodesicDistanceMap

      public ij.process.ImageProcessor geodesicDistanceMap​(ij.process.ImageProcessor marker, ij.process.ImageProcessor labelImage)
      Computes the geodesic distance function for each pixel in mask label image, using the given binary marker image. Mask and marker should be ImageProcessor the same size and containing integer values. The function returns a new FloatProcessor the same size as the input, with values greater or equal to zero.
      Specified by:
      geodesicDistanceMap in interface GeodesicDistanceTransform
      Parameters:
      marker - the binary marker image
      labelImage - the label image used as mask
      Returns:
      the geodesic distance map from the marker image within each label of the mask
      See Also:
      GeodesicDistanceTransform.geodesicDistanceMap(ij.process.ImageProcessor, ij.process.ImageProcessor)