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.
GeodesicReconstructionScanning
,
GeodesicReconstructionByDilation
,
GeodesicReconstructionByErosion
connectivity, showProgress, showStatus, verbose
Constructor and Description |
---|
GeodesicReconstructionHybrid()
Creates a new instance of geodesic reconstruction by dilation algorithm,
using the default connectivity 4.
|
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.
|
GeodesicReconstructionHybrid(int connectivity)
Creates a new instance of geodesic reconstruction by dilation algorithm,
that specifies the connectivity to use.
|
Modifier and Type | Method and 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) |
getConnectivity, setConnectivity
addAlgoListener, fireProgressChanged, fireProgressChanged, fireStatusChanged, fireStatusChanged, removeAlgoListener
public GeodesicReconstructionHybrid()
public GeodesicReconstructionHybrid(GeodesicReconstructionType type)
type
- the type of reconstruction (erosion or dilation)public GeodesicReconstructionHybrid(int connectivity)
connectivity
- the 2D connectivity to use (either 4 or 8)public GeodesicReconstructionHybrid(GeodesicReconstructionType type, int connectivity)
type
- the type of reconstruction (erosion or dilation)connectivity
- the 2D connectivity to use (either 4 or 8)public GeodesicReconstructionType getReconstructionType()
public void setReconstructionType(GeodesicReconstructionType reconstructionType)
reconstructionType
- the reconstructionType to setpublic ij.process.ImageProcessor applyTo(ij.process.ImageProcessor marker, ij.process.ImageProcessor mask)
marker
- image used to initialize the reconstructionmask
- image used to constrain the reconstructionCopyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.