Package inra.ijpb.morphology.extrema
Class RegionalExtrema3DByFlooding
java.lang.Object
inra.ijpb.algo.AlgoStub
inra.ijpb.morphology.extrema.RegionalExtrema3DAlgo
inra.ijpb.morphology.extrema.RegionalExtrema3DByFlooding
- All Implemented Interfaces:
Algo
public class RegionalExtrema3DByFlooding extends RegionalExtrema3DAlgo
Computes regional extrema in 3D images using flooding algorithm.
This class manages 6 and 26 connectivities as well as integer and
floating-point images.
Example of use:
ImageStack image = IJ.getImage().getStack();
RegionalExtrema3DAlgo algo = new RegionalExtrema3DFlooding();
algo.setExtremaType(ExtremaType.MAXIMA);
algo.setConnectivity(6);
ImageStack result = algo.applyTo(image);
ImagePlus resPlus = new ImagePlus("Regional Maxima", result);
resPlus.show();
- Author:
- David Legland
- See Also:
MinimaAndMaxima3D
,FloodFill
-
Constructor Summary
Constructors Constructor Description RegionalExtrema3DByFlooding()
-
Method Summary
Modifier and Type Method Description ij.ImageStack
applyTo(ij.ImageStack image)
Applies this regional extrema algorithm on the 3D image given as argument, and returns the result as a binary image stack.ij.ImageStack
applyTo(ij.ImageStack inputImage, ij.ImageStack maskImage)
Applies this regional extrema algorithm on the 3D image given as argument and using the given mask, and returns the result as a binary image stack.Methods inherited from class inra.ijpb.morphology.extrema.RegionalExtrema3DAlgo
getConnectivity, getExtremaType, isProgressVisible, setConnectivity, setExtremaType, setProgressVisible
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
-
RegionalExtrema3DByFlooding
public RegionalExtrema3DByFlooding()
-
-
Method Details
-
applyTo
public ij.ImageStack applyTo(ij.ImageStack image)Description copied from class:RegionalExtrema3DAlgo
Applies this regional extrema algorithm on the 3D image given as argument, and returns the result as a binary image stack.- Specified by:
applyTo
in classRegionalExtrema3DAlgo
- Parameters:
image
- the 3D image to process- Returns:
- the result of regional extrema detection
-
applyTo
public ij.ImageStack applyTo(ij.ImageStack inputImage, ij.ImageStack maskImage)Description copied from class:RegionalExtrema3DAlgo
Applies this regional extrema algorithm on the 3D image given as argument and using the given mask, and returns the result as a binary image stack.- Specified by:
applyTo
in classRegionalExtrema3DAlgo
- Parameters:
inputImage
- the 3D image to processmaskImage
- a binary mask- Returns:
- the result of regional extrema detection
-