public abstract class RegionalExtrema3DAlgo extends AlgoStub
ImageStack image = IJ.getImage().getStack();
RegionalExtrema3DAlgo algo = new RegionalExtrema3DFlooding();
algo.setConnectivity(6);
algo.setExtremaType(ExtremaType.MAXIMA);
ImageStack result = algo.applyTo(image);
ImagePlus resPlus = new ImagePlus("Regional Extrema", result);
resPlus.show();
RegionalExtrema3DByFlooding
Constructor and Description |
---|
RegionalExtrema3DAlgo()
Creates a new algorithm for computing regional extrema, that computes
regional minima with connectivity 6.
|
RegionalExtrema3DAlgo(ExtremaType extremaType,
int connectivity)
Creates a new algorithm for computing regional extrema, by choosing type
of minima and connectivity.
|
Modifier and Type | Method and Description |
---|---|
abstract ij.ImageStack |
applyTo(ij.ImageStack inputImage)
Applies this regional extrema algorithm on the 3D image given as argument,
and returns the result as a binary image stack.
|
abstract 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.
|
int |
getConnectivity()
Returns the connectivity value.
|
ExtremaType |
getExtremaType()
Returns the type of extrema.
|
boolean |
isProgressVisible()
Returns the value of progress visibility option.
|
void |
setConnectivity(int conn)
Sets the connectivity value.
|
void |
setExtremaType(ExtremaType extremaType)
Sets the type of extrema.
|
void |
setProgressVisible(boolean progressVisible)
Sets the value of progress visibility option.
|
addAlgoListener, fireProgressChanged, fireProgressChanged, fireStatusChanged, fireStatusChanged, removeAlgoListener
public RegionalExtrema3DAlgo()
public RegionalExtrema3DAlgo(ExtremaType extremaType, int connectivity)
extremaType
- the type of extrema (minima or maxima)connectivity
- should be 6 or 26public ExtremaType getExtremaType()
public void setExtremaType(ExtremaType extremaType)
extremaType
- the type of extrema.public int getConnectivity()
public void setConnectivity(int conn)
conn
- the connectivity value (either 6 or 26).public boolean isProgressVisible()
public void setProgressVisible(boolean progressVisible)
progressVisible
- the new value of progress visibility option.public abstract ij.ImageStack applyTo(ij.ImageStack inputImage)
inputImage
- the 3D image to processpublic abstract ij.ImageStack applyTo(ij.ImageStack inputImage, ij.ImageStack maskImage)
inputImage
- the 3D image to processmaskImage
- a binary maskCopyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.