public abstract class MorphologicalFilter extends AlgoStub implements AlgoListener
Strel
Modifier | Constructor and Description |
---|---|
protected |
MorphologicalFilter(Strel3D strel,
String suffix)
Creates a new MorphologicalFilter instance.
|
Modifier and Type | Method and Description |
---|---|
void |
algoProgressChanged(AlgoEvent evt)
The method devoted to manage the change in the progression of the
algorithm.
|
void |
algoStatusChanged(AlgoEvent evt)
The method devoted to manage the change in the status of the
algorithm.
|
protected static int |
clamp(int value,
int min,
int max)
Clamps an integer value within an interval, by forcing the resulting
value to lie within the input interval while being as close as possible
from the input value.
|
protected static double |
getMaxPossibleValue(ij.ImageStack stack)
Determines max possible value from bit depth.
|
Strel3D |
getStrel() |
ij.ImagePlus |
process(ij.ImagePlus imagePlus)
Applies the morphological filter to the input ImagePlus, and returns a
new instance of ImagePlus.
|
abstract ij.process.ImageProcessor |
process(ij.process.ImageProcessor image)
Apply filtering operation on the specified image, and returns the result
as a new instance of ImageProcessor.
|
abstract ij.ImageStack |
process(ij.ImageStack image)
Apply filtering operation on the specified 3D image, and returns the
result as a new instance of ImageStack.
|
protected ij.process.ColorProcessor |
processColor(ij.process.ColorProcessor image)
Performs morphological dilation on each channel, and reconstitutes the
resulting color image.
|
addAlgoListener, fireProgressChanged, fireProgressChanged, fireStatusChanged, fireStatusChanged, removeAlgoListener
public ij.ImagePlus process(ij.ImagePlus imagePlus)
imagePlus
- the image to processpublic abstract ij.process.ImageProcessor process(ij.process.ImageProcessor image)
image
- the image to processpublic abstract ij.ImageStack process(ij.ImageStack image)
image
- the image to processprotected ij.process.ColorProcessor processColor(ij.process.ColorProcessor image)
image
- the input RGB imagepublic Strel3D getStrel()
public void algoProgressChanged(AlgoEvent evt)
AlgoListener
algoProgressChanged
in interface AlgoListener
evt
- the AlgoEvent instance containing info about the algorithm.public void algoStatusChanged(AlgoEvent evt)
AlgoListener
algoStatusChanged
in interface AlgoListener
evt
- the AlgoEvent instance containing info about the algorithm.protected static final double getMaxPossibleValue(ij.ImageStack stack)
stack
- the imageprotected static final int clamp(int value, int min, int max)
value
- the value to clamp.min
- the minimum of the clamp rangemax
- the maximum of the clamp rangeCopyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.