Package inra.ijpb.morphology.filter
Class ExternalGradient
java.lang.Object
inra.ijpb.algo.AlgoStub
inra.ijpb.morphology.filter.MorphologicalFilter
inra.ijpb.morphology.filter.ExternalGradient
- All Implemented Interfaces:
Algo
,AlgoListener
public class ExternalGradient extends MorphologicalFilter
Performs morphological external gradient on 2D/3D images.
Computes black top hat (or "bottom hat") of the original image. The black top
hat is obtained by subtracting the original image from the result of a
closing.
The black top hat enhances dark structures smaller than the structuring
element.
- See Also:
Erosion
,Dilation
,Gradient
,InternalGradient
-
Constructor Summary
Constructors Constructor Description ExternalGradient(Strel3D strel)
Creates a new External Gradient operator with the specified structuring element. -
Method Summary
Modifier and Type Method Description ij.ImageStack
process(ij.ImageStack image)
Apply filtering operation on the specified 3D image, and returns the result as a new instance of ImageStack.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.Methods inherited from class inra.ijpb.morphology.filter.MorphologicalFilter
algoProgressChanged, algoStatusChanged, getStrel, process
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
-
ExternalGradient
Creates a new External Gradient operator with the specified structuring element.- Parameters:
strel
- the structuring element used for the operation, that can also be an instance of Strel.
-
-
Method Details
-
process
public ij.process.ImageProcessor process(ij.process.ImageProcessor image)Description copied from class:MorphologicalFilter
Apply filtering operation on the specified image, and returns the result as a new instance of ImageProcessor.- Specified by:
process
in classMorphologicalFilter
- Parameters:
image
- the image to process- Returns:
- the result of morphological filter.
-
process
public ij.ImageStack process(ij.ImageStack image)Description copied from class:MorphologicalFilter
Apply filtering operation on the specified 3D image, and returns the result as a new instance of ImageStack.- Specified by:
process
in classMorphologicalFilter
- Parameters:
image
- the image to process- Returns:
- the result of morphological filter.
-