public class LinearDepthStrel3D extends AbstractInPlaceStrel3D
LinearVerticalStrel, 
LinearDiagUpStrel, 
LinearDiagDownStrelStrel3D.ShapeBACKGROUND, FOREGROUND| Constructor and Description | 
|---|
LinearDepthStrel3D(int size)
Creates a new horizontal linear structuring element of a given size. 
 | 
LinearDepthStrel3D(int size,
                  int offset)
Creates a new horizontal linear structuring element of a given size and
 with a given offset. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static LinearDepthStrel3D | 
fromDiameter(int diam)
Creates a new line-shape structuring element with the specified diameter
 (equal to the length of the line). 
 | 
static LinearDepthStrel3D | 
fromRadius(int radius)
Creates a new line-shape structuring element with the specified radius
 (such that orthogonal diameter equals 2*radius+1). 
 | 
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. 
 | 
void | 
inPlaceDilation(ij.ImageStack stack)
Performs dilation of the stack given as argument, and stores the result
 in the same image. 
 | 
void | 
inPlaceErosion(ij.ImageStack stack)
Performs erosion of the image given as argument, and stores the result
 in the same image. 
 | 
LinearDepthStrel3D | 
reverse()
Returns a linear horizontal line with same size and offset equal to size-offset-1. 
 | 
closing, dilation, erosion, openingaddBorder, convertMaskToShifts, cropBorder, fireProgressChanged, fireProgressChanged, fireStatusChanged, fireStatusChanged, showProgress, showProgressaddAlgoListener, removeAlgoListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitshowProgress, showProgressaddAlgoListener, removeAlgoListenerpublic LinearDepthStrel3D(int size)
size - the number of pixels in this structuring elementpublic LinearDepthStrel3D(int size,
                          int offset)
size - the number of pixels in this structuring elementoffset - the position of the reference pixel (between 0 and size-1)public static final LinearDepthStrel3D fromDiameter(int diam)
diam - the length of the line along the Z directionpublic static final LinearDepthStrel3D fromRadius(int radius)
radius - the radius of the line, such that line length equals 2*radius+1public void inPlaceDilation(ij.ImageStack stack)
InPlaceStrel3Dstack - the input image stack to dilatepublic void inPlaceErosion(ij.ImageStack stack)
InPlaceStrel3Dstack - the input image stack to erodepublic int[][][] getMask3D()
Strel3Dpublic int[] getOffset()
Strel3Dpublic int[][] getShifts3D()
Strel3Dpublic int[] getSize()
Strel3Dpublic LinearDepthStrel3D reverse()
Strel.reverse()Copyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.