Package inra.ijpb.morphology.strel
Class AbstractSeparableStrel3D
java.lang.Object
inra.ijpb.algo.AlgoStub
inra.ijpb.morphology.strel.AbstractStrel3D
inra.ijpb.morphology.strel.AbstractSeparableStrel3D
- All Implemented Interfaces:
Algo,AlgoListener,SeparableStrel3D,Strel3D
- Direct Known Subclasses:
CubeStrel,CuboidStrel
public abstract class AbstractSeparableStrel3D extends AbstractStrel3D implements SeparableStrel3D, AlgoListener
Implementation stub for separable 3D Structuring elements.
- Author:
- David Legland
-
Nested Class Summary
Nested classes/interfaces inherited from interface inra.ijpb.morphology.Strel3D
Strel3D.Shape -
Field Summary
Fields inherited from interface inra.ijpb.morphology.Strel3D
BACKGROUND, FOREGROUND -
Constructor Summary
Constructors Constructor Description AbstractSeparableStrel3D() -
Method Summary
Modifier and Type Method Description voidalgoProgressChanged(AlgoEvent evt)Propagates the event by changing the source.voidalgoStatusChanged(AlgoEvent evt)Propagates the event by changing the source.ij.ImageStackclosing(ij.ImageStack stack)Performs a morphological closing on the input stack, by applying first a dilation, then an erosion with the reversed structuring element.ij.ImageStackdilation(ij.ImageStack stack)Implements a default algorithm for dilation, that consists in iterating over the neighbors of each pixel to compute the maximum value.ij.ImageStackerosion(ij.ImageStack stack)Implements a default algorithm for erosion, that consists in iterating over the neighbors of each pixel to compute the minimum value.ij.ImageStackopening(ij.ImageStack stack)Performs a morphological opening on the input stack, by applying first an erosion, then a dilation with the reversed structuring element.Methods inherited from class inra.ijpb.morphology.strel.AbstractStrel3D
addBorder, cropBorder, showProgress, showProgressMethods inherited from class inra.ijpb.algo.AlgoStub
addAlgoListener, removeAlgoListenerMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface inra.ijpb.algo.Algo
addAlgoListener, removeAlgoListenerMethods inherited from interface inra.ijpb.morphology.strel.SeparableStrel3D
decompose, reverseMethods inherited from interface inra.ijpb.morphology.Strel3D
getMask3D, getOffset, getShifts3D, getSize, showProgress, showProgress
-
Constructor Details
-
AbstractSeparableStrel3D
public AbstractSeparableStrel3D()
-
-
Method Details
-
dilation
public ij.ImageStack dilation(ij.ImageStack stack)Description copied from class:AbstractStrel3DImplements a default algorithm for dilation, that consists in iterating over the neighbors of each pixel to compute the maximum value. The neighbors are obtained via thegetShifts()method.- Specified by:
dilationin interfaceStrel3D- Overrides:
dilationin classAbstractStrel3D- Parameters:
stack- the input image- Returns:
- the result of dilation with this structuring element
- See Also:
Strel3D.getShifts3D(),AbstractStrel3D.erosion(ImageStack)
-
erosion
public ij.ImageStack erosion(ij.ImageStack stack)Description copied from class:AbstractStrel3DImplements a default algorithm for erosion, that consists in iterating over the neighbors of each pixel to compute the minimum value. The neighbors are obtained via thegetShifts()method.- Specified by:
erosionin interfaceStrel3D- Overrides:
erosionin classAbstractStrel3D- Parameters:
stack- the input image- Returns:
- the result of erosion with this structuring element
- See Also:
Strel3D.getShifts3D(),AbstractStrel3D.dilation(ImageStack)
-
closing
public ij.ImageStack closing(ij.ImageStack stack)Description copied from class:AbstractStrel3DPerforms a morphological closing on the input stack, by applying first a dilation, then an erosion with the reversed structuring element.- Specified by:
closingin interfaceStrel3D- Overrides:
closingin classAbstractStrel3D- Parameters:
stack- the input image- Returns:
- the result of closing with this structuring element
- See Also:
AbstractStrel3D.dilation(ImageStack),AbstractStrel3D.erosion(ImageStack),AbstractStrel3D.opening(ImageStack),Strel3D.reverse()
-
opening
public ij.ImageStack opening(ij.ImageStack stack)Description copied from class:AbstractStrel3DPerforms a morphological opening on the input stack, by applying first an erosion, then a dilation with the reversed structuring element.- Specified by:
openingin interfaceStrel3D- Overrides:
openingin classAbstractStrel3D- Parameters:
stack- the input image- Returns:
- the result of closing with this structuring element
- See Also:
AbstractStrel3D.dilation(ImageStack),AbstractStrel3D.erosion(ImageStack),AbstractStrel3D.closing(ImageStack),Strel3D.reverse()
-
algoProgressChanged
Propagates the event by changing the source.- Specified by:
algoProgressChangedin interfaceAlgoListener- Parameters:
evt- the AlgoEvent instance containing info about the algorithm.
-
algoStatusChanged
Propagates the event by changing the source.- Specified by:
algoStatusChangedin interfaceAlgoListener- Parameters:
evt- the AlgoEvent instance containing info about the algorithm.
-