public class DiskStrel extends AbstractInPlaceStrel implements InPlaceStrel
Strel.Shape
BACKGROUND, FOREGROUND
Modifier and Type | Method and Description |
---|---|
static DiskStrel |
fromDiameter(int diam)
Creates a structuring element with a circular shape of the given
diameter.
|
static DiskStrel |
fromRadius(int radius)
Creates a structuring element with a circular shape of the given radius.
|
int[][] |
getMask()
Returns the structuring element as a mask.
|
int[] |
getOffset()
Returns the offset in the mask.
|
int[][] |
getShifts()
Returns the structuring element as a set of shifts.
|
int[] |
getSize()
Returns the size of the structuring element, as an array of size in each
direction.
|
void |
inPlaceDilation(ij.process.ImageProcessor image)
Performs in-place dilation with a disk structuring element by calling the
ImageJ native RankFilters algorithm, using RankFilters.MAX option.
|
void |
inPlaceErosion(ij.process.ImageProcessor image)
Performs in-place erosion with a disk structuring element by calling the
ImageJ native RankFilters algorithm, using RankFilters.MIN option.
|
DiskStrel |
reverse()
The reverse structuring element of an InPlaceStrel is also an
InPlaceStrel.
|
closing, closing, dilation, dilation, erosion, erosion, inPlaceDilation, inPlaceErosion, opening, opening
addBorder, convertMaskToShifts, cropBorder, getChannelName, getMask3D, getShifts3D, setChannelName
addBorder, convertMaskToShifts, cropBorder, fireProgressChanged, fireProgressChanged, fireStatusChanged, fireStatusChanged, showProgress, showProgress
addAlgoListener, removeAlgoListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
closing, dilation, erosion, getChannelName, opening, setChannelName
inPlaceDilation, inPlaceErosion
closing, dilation, erosion, getMask3D, getShifts3D, opening, showProgress, showProgress
addAlgoListener, removeAlgoListener
public static final DiskStrel fromRadius(int radius)
radius
- the radius of the structuring element, in pixelspublic static final DiskStrel fromDiameter(int diam)
radius = (diameter - 1) / 2
diam
- the diameter of the structuring element, in pixelspublic int[] getSize()
Strel
public int[][] getMask()
Strel
public int[] getOffset()
Strel
public int[][] getShifts()
Strel
public DiskStrel reverse()
InPlaceStrel
reverse
in interface Strel
reverse
in interface InPlaceStrel
reverse
in interface InPlaceStrel3D
reverse
in interface Strel3D
public void inPlaceDilation(ij.process.ImageProcessor image)
inPlaceDilation
in interface InPlaceStrel
image
- the image to processpublic void inPlaceErosion(ij.process.ImageProcessor image)
inPlaceErosion
in interface InPlaceStrel
image
- the image to processCopyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.