Package inra.ijpb.morphology.geodrec
Class GeodesicReconstructionHybrid
java.lang.Object
inra.ijpb.algo.AlgoStub
inra.ijpb.morphology.geodrec.GeodesicReconstructionAlgoStub
inra.ijpb.morphology.geodrec.GeodesicReconstructionHybrid
- All Implemented Interfaces:
Algo
,GeodesicReconstructionAlgo
public class GeodesicReconstructionHybrid extends GeodesicReconstructionAlgoStub
Geodesic reconstruction for planar images, using hybrid algorithm.
This class performs the algorithm on the two instances of ImageProcessor kept in it.
- Author:
- David Legland
- See Also:
GeodesicReconstructionScanning
,GeodesicReconstructionByDilation
,GeodesicReconstructionByErosion
-
Field Summary
Fields inherited from class inra.ijpb.morphology.geodrec.GeodesicReconstructionAlgoStub
showProgress, showStatus, verbose
-
Constructor Summary
Constructors Constructor Description GeodesicReconstructionHybrid()
Creates a new instance of geodesic reconstruction by dilation algorithm, using the default connectivity 4.GeodesicReconstructionHybrid(int connectivity)
Creates a new instance of geodesic reconstruction by dilation algorithm, that specifies the connectivity to use.GeodesicReconstructionHybrid(GeodesicReconstructionType type)
Creates a new instance of geodesic reconstruction by dilation algorithm, that specifies the type of reconstruction, and using the connectivity 4.GeodesicReconstructionHybrid(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. -
Method Summary
Modifier and Type Method Description ij.process.ImageProcessor
applyTo(ij.process.ImageProcessor marker, ij.process.ImageProcessor mask)
Run the geodesic reconstruction algorithm using the specified images as argument.GeodesicReconstructionType
getReconstructionType()
void
setReconstructionType(GeodesicReconstructionType reconstructionType)
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
-
GeodesicReconstructionHybrid
public GeodesicReconstructionHybrid()Creates a new instance of geodesic reconstruction by dilation algorithm, using the default connectivity 4. -
GeodesicReconstructionHybrid
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)
-
GeodesicReconstructionHybrid
public GeodesicReconstructionHybrid(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)
-
GeodesicReconstructionHybrid
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
- Returns:
- the reconstructionType
-
setReconstructionType
- Parameters:
reconstructionType
- the reconstructionType to set
-
applyTo
public ij.process.ImageProcessor applyTo(ij.process.ImageProcessor marker, ij.process.ImageProcessor mask)Run the geodesic reconstruction algorithm using the specified images 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
-