Package inra.ijpb.morphology.strel
Class AbstractInPlaceStrel
java.lang.Object
inra.ijpb.algo.AlgoStub
inra.ijpb.morphology.strel.AbstractStrel3D
inra.ijpb.morphology.strel.AbstractStrel
inra.ijpb.morphology.strel.AbstractInPlaceStrel
- All Implemented Interfaces:
Algo,Strel,InPlaceStrel,InPlaceStrel3D,Strel3D
- Direct Known Subclasses:
Cross3x3Strel,DiskStrel,LinearDiagDownStrel,LinearDiagUpStrel,LinearHorizontalStrel,LinearVerticalStrel
public abstract class AbstractInPlaceStrel extends AbstractStrel implements InPlaceStrel
Implementation stub for in place Structuring elements.
Implements operations methods by calling in-place versions.
- Author:
- David Legland
-
Nested Class Summary
Nested classes/interfaces inherited from interface inra.ijpb.morphology.Strel
Strel.ShapeNested classes/interfaces inherited from interface inra.ijpb.morphology.Strel3D
Strel3D.Shape -
Field Summary
Fields inherited from interface inra.ijpb.morphology.Strel
BACKGROUND, FOREGROUNDFields inherited from interface inra.ijpb.morphology.Strel3D
BACKGROUND, FOREGROUND -
Constructor Summary
Constructors Constructor Description AbstractInPlaceStrel() -
Method Summary
Modifier and Type Method Description 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.process.ImageProcessorclosing(ij.process.ImageProcessor image)Performs a morphological closing on the input image, 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.process.ImageProcessordilation(ij.process.ImageProcessor image)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.process.ImageProcessorerosion(ij.process.ImageProcessor image)Implements a default algorithm for erosion, that consists in iterating over the neighbors of each pixel to compute the minimum value.voidinPlaceDilation(ij.ImageStack stack)Performs dilation of the stack given as argument, and stores the result in the same image.voidinPlaceErosion(ij.ImageStack stack)Performs erosion of the image given as argument, and stores the result in the same image.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.ij.process.ImageProcessoropening(ij.process.ImageProcessor image)Performs a morphological opening on the input image, by applying first an erosion, then a dilation with the reversed structuring element.Methods inherited from class inra.ijpb.morphology.strel.AbstractStrel
addBorder, cropBorder, getChannelName, getMask3D, getShifts3D, setChannelNameMethods 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.InPlaceStrel
inPlaceDilation, inPlaceErosion, reverseMethods inherited from interface inra.ijpb.morphology.Strel
getChannelName, getMask, getOffset, getShifts, getSize, setChannelNameMethods inherited from interface inra.ijpb.morphology.Strel3D
getMask3D, getShifts3D, showProgress, showProgress
-
Constructor Details
-
AbstractInPlaceStrel
public AbstractInPlaceStrel()
-
-
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 classAbstractStrel- 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 classAbstractStrel- 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 classAbstractStrel- 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 classAbstractStrel- 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()
-
inPlaceDilation
public void inPlaceDilation(ij.ImageStack stack)Description copied from interface:InPlaceStrel3DPerforms dilation of the stack given as argument, and stores the result in the same image.- Specified by:
inPlaceDilationin interfaceInPlaceStrel3D- Parameters:
stack- the input image stack to dilate
-
inPlaceErosion
public void inPlaceErosion(ij.ImageStack stack)Description copied from interface:InPlaceStrel3DPerforms erosion of the image given as argument, and stores the result in the same image.- Specified by:
inPlaceErosionin interfaceInPlaceStrel3D- Parameters:
stack- the input image stack to erode
-
dilation
public ij.process.ImageProcessor dilation(ij.process.ImageProcessor image)Description copied from class:AbstractStrelImplements 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 interfaceStrel- Overrides:
dilationin classAbstractStrel- Parameters:
image- the input image- Returns:
- the result of dilation with this structuring element
- See Also:
Strel.getShifts(),AbstractStrel.erosion(ImageProcessor)
-
erosion
public ij.process.ImageProcessor erosion(ij.process.ImageProcessor image)Description copied from class:AbstractStrelImplements 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 interfaceStrel- Overrides:
erosionin classAbstractStrel- Parameters:
image- the input image- Returns:
- the result of erosion with this structuring element
- See Also:
Strel.getShifts(),AbstractStrel.dilation(ImageProcessor)
-
closing
public ij.process.ImageProcessor closing(ij.process.ImageProcessor image)Description copied from class:AbstractStrelPerforms a morphological closing on the input image, by applying first a dilation, then an erosion with the reversed structuring element.- Specified by:
closingin interfaceStrel- Overrides:
closingin classAbstractStrel- Parameters:
image- the input image- Returns:
- the result of closing with this structuring element
- See Also:
AbstractStrel.dilation(ij.process.ImageProcessor),AbstractStrel.erosion(ij.process.ImageProcessor),AbstractStrel.opening(ij.process.ImageProcessor),Strel3D.reverse()
-
opening
public ij.process.ImageProcessor opening(ij.process.ImageProcessor image)Description copied from class:AbstractStrelPerforms a morphological opening on the input image, by applying first an erosion, then a dilation with the reversed structuring element.- Specified by:
openingin interfaceStrel- Overrides:
openingin classAbstractStrel- Parameters:
image- the input image- Returns:
- the result of opening with this structuring element
- See Also:
AbstractStrel.dilation(ij.process.ImageProcessor),AbstractStrel.erosion(ij.process.ImageProcessor),AbstractStrel.closing(ij.process.ImageProcessor),Strel3D.reverse()
-