Package inra.ijpb.morphology.geodrec
Class GeodesicReconstructionByDilation3DScanning
java.lang.Object
inra.ijpb.algo.AlgoStub
inra.ijpb.morphology.geodrec.GeodesicReconstruction3DAlgoStub
inra.ijpb.morphology.geodrec.GeodesicReconstructionByDilation3DScanning
- All Implemented Interfaces:
Algo
,GeodesicReconstruction3DAlgo
public class GeodesicReconstructionByDilation3DScanning extends GeodesicReconstruction3DAlgoStub
Geodesic reconstruction by dilation for 3D stacks using scanning algorithm, and Image3D access class.
This version uses iterations of forward and backward passes until no more modifications are made. It is intended to work on any type of scalar 3D, images, using 6 or 26 adjacencies.
Uses specialized class to access the values in 3D image stacks, by avoiding to check bounds at each access. For byte stack, the class GeodesicReconstructionByDilation3DScanningGray8 may be faster.
- Author:
- David Legland
- See Also:
Image3D
-
Field Summary
Fields inherited from class inra.ijpb.morphology.geodrec.GeodesicReconstruction3DAlgoStub
showProgress, showStatus, verbose
-
Constructor Summary
Constructors Constructor Description GeodesicReconstructionByDilation3DScanning()
Creates a new instance of geodesic reconstruction by dilation algorithm, using the default connectivity 6.GeodesicReconstructionByDilation3DScanning(int connectivity)
Creates a new instance of geodesic reconstruction by dilation algorithm, that specifies the connectivity to use. -
Method Summary
Modifier and Type Method Description ij.ImageStack
applyTo(ij.ImageStack marker, ij.ImageStack mask)
Run the reconstruction by dilation algorithm using the images specified as argument.ij.ImageStack
applyTo(ij.ImageStack marker, ij.ImageStack mask, ij.ImageStack binaryMask)
Run the reconstruction by dilation algorithm using the images specified as argument.Methods inherited from class inra.ijpb.morphology.geodrec.GeodesicReconstruction3DAlgoStub
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
Methods inherited from interface inra.ijpb.algo.Algo
addAlgoListener, removeAlgoListener
-
Constructor Details
-
GeodesicReconstructionByDilation3DScanning
public GeodesicReconstructionByDilation3DScanning()Creates a new instance of geodesic reconstruction by dilation algorithm, using the default connectivity 6. -
GeodesicReconstructionByDilation3DScanning
public GeodesicReconstructionByDilation3DScanning(int connectivity)Creates a new instance of geodesic reconstruction by dilation algorithm, that specifies the connectivity to use.- Parameters:
connectivity
- the 3D connectivity to use (either 6 or 26)
-
-
Method Details
-
applyTo
public ij.ImageStack applyTo(ij.ImageStack marker, ij.ImageStack mask)Run the reconstruction by dilation algorithm using the images specified as argument.- Parameters:
marker
- the image used as marker for reconstructionmask
- the image used to constrain the reconstruction- Returns:
- the result of geodesic reconstruction
-
applyTo
public ij.ImageStack applyTo(ij.ImageStack marker, ij.ImageStack mask, ij.ImageStack binaryMask)Run the reconstruction by dilation algorithm using the images specified as argument.- Parameters:
marker
- the image used as marker for reconstructionmask
- the image used to constrain the reconstructionbinaryMask
- the region of intersect for processing input images- Returns:
- the result of geodesic reconstruction
-