public class EllipsoidStrel extends AbstractStrel3D
BallStrel
Strel3D.Shape
BACKGROUND, FOREGROUND
Modifier and Type | Method and Description |
---|---|
ij.ImageStack |
dilation(ij.ImageStack image)
Performs dilation with a ball structuring element by calling the ImageJ
Filters3D.filter method, using Filters3D.MAX option.
|
ij.ImageStack |
erosion(ij.ImageStack image)
Performs erosion with a ball structuring element by calling the ImageJ
Filters3D.filter method, using Filters3D.MIN option.
|
static EllipsoidStrel |
fromDiameter(double diam)
Creates a structuring element with an ellipsoidal shape of the given diameter.
|
static EllipsoidStrel |
fromDiameterList(double diamX,
double diamY,
double diamZ)
Creates a structuring element with an ellipsoidal shape from a list of
three diameters.
|
static EllipsoidStrel |
fromRadius(double radius)
Creates a structuring element with an ellipsoidal shape of the given radius.
|
static EllipsoidStrel |
fromRadiusList(double radiusX,
double radiusY,
double radiusZ)
Creates a structuring element with an ellipsoidal shape from a list of
three radius.
|
int[][][] |
getMask3D()
Returns the structuring element as a mask.
|
int[] |
getOffset()
Returns the offset in the mask for each direction.
|
int[][] |
getShifts3D()
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.
|
Strel3D |
reverse()
Returns this instance, as an ellipsoid is symmetric.
|
addBorder, closing, convertMaskToShifts, cropBorder, fireProgressChanged, fireProgressChanged, fireStatusChanged, fireStatusChanged, opening, showProgress, showProgress
addAlgoListener, removeAlgoListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addAlgoListener, removeAlgoListener
public static final EllipsoidStrel fromRadius(double radius)
radius
- the radius of the structuring element, in pixelspublic static final EllipsoidStrel fromRadiusList(double radiusX, double radiusY, double radiusZ)
radiusX
- the radius along the X-axisradiusY
- the radius along the Y-axisradiusZ
- the radius along the Z-axispublic static final EllipsoidStrel fromDiameter(double diam)
diam
- the diameter of the structuring element, in pixelspublic static final EllipsoidStrel fromDiameterList(double diamX, double diamY, double diamZ)
diamX
- the diameter along the X-axisdiamY
- the diameter along the Y-axisdiamZ
- the diameter along the Z-axispublic int[] getSize()
Strel3D
public int[][][] getMask3D()
Strel3D
public int[] getOffset()
Strel3D
public int[][] getShifts3D()
Strel3D
public Strel3D reverse()
public ij.ImageStack dilation(ij.ImageStack image)
dilation
in interface Strel3D
dilation
in class AbstractStrel3D
image
- the 3D stack to processStrel3D.getShifts3D()
,
AbstractStrel3D.erosion(ImageStack)
public ij.ImageStack erosion(ij.ImageStack image)
erosion
in interface Strel3D
erosion
in class AbstractStrel3D
image
- the 3D stack to processStrel3D.getShifts3D()
,
AbstractStrel3D.dilation(ImageStack)
Copyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.