Package inra.ijpb.morphology.extrema
Class RegionalExtremaByFlooding
java.lang.Object
inra.ijpb.morphology.extrema.RegionalExtremaAlgo
inra.ijpb.morphology.extrema.RegionalExtremaByFlooding
public class RegionalExtremaByFlooding extends RegionalExtremaAlgo
Computes regional extrema in planar images using flooding algorithm.
This class manages 4 and 8 connectivities. All computations are performed
using double, making it generic for 8-, 16- or 32-bit images.
Example of use:
ImageProcessor image = IJ.getImage().getProcessor();
RegionalExtremaAlgo algo = new RegionalExtremaByFlooding();
algo.setExtremaType(ExtremaType.MAXIMA);
algo.setConnectivity(4);
ImageProcessor result = algo.applyTo(image);
ImagePlus resPlus = new ImagePlus("Regional Extrema", result);
resPlus.show();
-
Constructor Summary
Constructors Constructor Description RegionalExtremaByFlooding()
-
Method Summary
Modifier and Type Method Description ij.process.ImageProcessor
applyTo(ij.process.ImageProcessor inputImage)
Applies this regional extrema algorithm on the image given as argument, and returns the result as a binary image.Methods inherited from class inra.ijpb.morphology.extrema.RegionalExtremaAlgo
getConnectivity, getExtremaType, isProgressVisible, setConnectivity, setExtremaType, setProgressVisible
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
RegionalExtremaByFlooding
public RegionalExtremaByFlooding()
-
-
Method Details
-
applyTo
public ij.process.ImageProcessor applyTo(ij.process.ImageProcessor inputImage)Description copied from class:RegionalExtremaAlgo
Applies this regional extrema algorithm on the image given as argument, and returns the result as a binary image.- Specified by:
applyTo
in classRegionalExtremaAlgo
- Parameters:
inputImage
- the image to process- Returns:
- the result of regional extrema detection
-