Class GeodesicReconstructionByErosion

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

public class GeodesicReconstructionByErosion
extends GeodesicReconstructionAlgoStub
Geodesic reconstruction by erosion for integer images. This class performs the algorithm on the two instances of ImageProcessor kept in it.
Author:
David Legland
See Also:
GeodesicReconstructionByDilation
  • Constructor Details

    • GeodesicReconstructionByErosion

      public GeodesicReconstructionByErosion()
      Creates a new instance of geodesic reconstruction by erosion algorithm, using default connectivity 4.
    • GeodesicReconstructionByErosion

      public GeodesicReconstructionByErosion​(int connectivity)
      Creates a new instance of geodesic reconstruction by erosion 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 erosion 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