Package inra.ijpb.morphology.geodrec
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
-
Field Summary
Fields inherited from class inra.ijpb.morphology.geodrec.GeodesicReconstructionAlgoStub
showProgress, showStatus, verbose
-
Constructor Summary
Constructors Constructor Description GeodesicReconstructionByErosion()
Creates a new instance of geodesic reconstruction by erosion algorithm, using default connectivity 4.GeodesicReconstructionByErosion(int connectivity)
Creates a new instance of geodesic reconstruction by erosion algorithm, that specifies the connectivity to use. -
Method Summary
Modifier and Type Method Description ij.process.ImageProcessor
applyTo(ij.process.ImageProcessor marker, ij.process.ImageProcessor mask)
Run the reconstruction by erosion algorithm using the images specified as argument.Methods inherited from class inra.ijpb.morphology.geodrec.GeodesicReconstructionAlgoStub
getConnectivity, setConnectivity
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
-
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 reconstructionmask
- image used to constrain the reconstruction- Returns:
- the geodesic reconstruction of marker image constrained by mask image
-