public class BallStrel extends AbstractStrel3D
EllipsoidStrel
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 BallStrel |
fromDiameter(double diam)
Creates a structuring element with a spherical shape of the given diameter.
|
static BallStrel |
fromRadius(double radius)
Creates a structuring element with a spherical shape of the given 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 a reversed (i.e.
|
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 BallStrel fromRadius(double radius)
radius
- the radius of the structuring element, in pixelspublic static final BallStrel fromDiameter(double diam)
diam
- the diameter of the ball, in pixelspublic int[] getSize()
Strel3D
public int[][][] getMask3D()
Strel3D
public int[] getOffset()
Strel3D
public int[][] getShifts3D()
Strel3D
public Strel3D reverse()
Strel3D
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.