Class GeodesicReconstructionScanning

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

public class GeodesicReconstructionScanning
extends GeodesicReconstructionAlgoStub
Geodesic reconstruction for planar images, using scanning algorithm. This class performs the algorithm on the two instances of ImageProcessor kept in it. Works for integer as well as for floating-point images.
Author:
David Legland
See Also:
GeodesicReconstructionByErosion
  • Constructor Details

    • GeodesicReconstructionScanning

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

      public GeodesicReconstructionScanning​(GeodesicReconstructionType type)
      Creates a new instance of geodesic reconstruction by dilation algorithm, that specifies the type of reconstruction, and using the connectivity 4.
      Parameters:
      type - the type of reconstruction (erosion or dilation)
    • GeodesicReconstructionScanning

      public GeodesicReconstructionScanning​(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)
    • GeodesicReconstructionScanning

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

    • getReconstructionType

      public GeodesicReconstructionType getReconstructionType()
      Returns:
      the reconstructionType
    • setReconstructionType

      public void setReconstructionType​(GeodesicReconstructionType reconstructionType)
      Parameters:
      reconstructionType - the reconstructionType to set
    • 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