Class GeodesicReconstructionByDilation

java.lang.Object
inra.ijpb.algo.AlgoStub
inra.ijpb.morphology.geodrec.GeodesicReconstructionAlgoStub
inra.ijpb.morphology.geodrec.GeodesicReconstructionByDilation
All Implemented Interfaces:
Algo, GeodesicReconstructionAlgo

public class GeodesicReconstructionByDilation
extends GeodesicReconstructionAlgoStub

Geodesic reconstruction by dilation for planar images.

This class performs the algorithm on the two instances of ImageProcessor kept in it. Works for integer as well as for floating-point images. Also performs a specific processing for pixels at the border of the image.

Author:
David Legland
See Also:
GeodesicReconstructionByErosion, GeodesicReconstructionHybrid, GeodesicReconstructionScanning
  • Constructor Details

    • GeodesicReconstructionByDilation

      public GeodesicReconstructionByDilation()
      Creates a new instance of geodesic reconstruction by dilation algorithm, using the default connectivity 4.
    • GeodesicReconstructionByDilation

      public GeodesicReconstructionByDilation​(int connectivity)
      Creates a new instance of geodesic reconstruction by dilation algorithm, that specifies the connectivity to use.
      Parameters:
      connectivity - the 2D connectivity to use (either 4 or 8)
  • Method Details

    • applyTo

      public ij.process.ImageProcessor applyTo​(ij.process.ImageProcessor marker, ij.process.ImageProcessor mask)
      Run the reconstruction by dilation algorithm using the images specified as argument.
      Parameters:
      marker - image used to initialize the reconstruction
      mask - image used to constrain the reconstruction
      Returns:
      the geodesic reconstruction of marker image constrained by mask image