public class ExtrudedStrel extends AbstractStrel3D
Strel3D.Shape
BACKGROUND, FOREGROUND
Constructor and Description |
---|
ExtrudedStrel(Strel strel2d,
int nSlices)
Creates a 3D structuring element by extruding ("repeating") a 2D
structuring element along the given number of slices.
|
ExtrudedStrel(Strel strel2d,
int nSlices,
int offset)
Creates a 3D structuring element by extruding ("repeating") a 2D
structuring element along the given number of slices.
|
Modifier and Type | Method and Description |
---|---|
ij.ImageStack |
dilation(ij.ImageStack image)
Implements a default algorithm for dilation, that consists in iterating
over the neighbors of each pixel to compute the maximum value.
|
ij.ImageStack |
erosion(ij.ImageStack image)
Implements a default algorithm for erosion, that consists in iterating
over the neighbors of each pixel to compute the minimum value.
|
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 ExtrudedStrel(Strel strel2d, int nSlices)
strel2d
- the 2D structuring to repeatnSlices
- the number of slices for replicationpublic ExtrudedStrel(Strel strel2d, int nSlices, int offset)
strel2d
- the 2D structuring to repeatnSlices
- the number of slices for replicationoffset
- the offset along the Z-axis for the new strelpublic int[] getSize()
Strel3D
public int[][][] getMask3D()
Strel3D
public int[] getOffset()
Strel3D
public int[][] getShifts3D()
Strel3D
public ij.ImageStack dilation(ij.ImageStack image)
AbstractStrel3D
getShifts()
method.dilation
in interface Strel3D
dilation
in class AbstractStrel3D
image
- the input imageStrel3D.getShifts3D()
,
AbstractStrel3D.erosion(ImageStack)
public ij.ImageStack erosion(ij.ImageStack image)
AbstractStrel3D
getShifts()
method.erosion
in interface Strel3D
erosion
in class AbstractStrel3D
image
- the input imageStrel3D.getShifts3D()
,
AbstractStrel3D.dilation(ImageStack)
Copyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.