public class DiskStrel extends AbstractInPlaceStrel implements InPlaceStrel
Strel.ShapeBACKGROUND, 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, openingaddBorder, convertMaskToShifts, cropBorder, getChannelName, getMask3D, getShifts3D, setChannelNameaddBorder, convertMaskToShifts, cropBorder, fireProgressChanged, fireProgressChanged, fireStatusChanged, fireStatusChanged, showProgress, showProgressaddAlgoListener, removeAlgoListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclosing, dilation, erosion, getChannelName, opening, setChannelNameinPlaceDilation, inPlaceErosionclosing, dilation, erosion, getMask3D, getShifts3D, opening, showProgress, showProgressaddAlgoListener, removeAlgoListenerpublic 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()
Strelpublic int[][] getMask()
Strelpublic int[] getOffset()
Strelpublic int[][] getShifts()
Strelpublic DiskStrel reverse()
InPlaceStrelreverse in interface Strelreverse in interface InPlaceStrelreverse in interface InPlaceStrel3Dreverse in interface Strel3Dpublic void inPlaceDilation(ij.process.ImageProcessor image)
inPlaceDilation in interface InPlaceStrelimage - the image to processpublic void inPlaceErosion(ij.process.ImageProcessor image)
inPlaceErosion in interface InPlaceStrelimage - the image to processCopyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.