public class LinearVerticalStrel extends AbstractInPlaceStrel
LinearHorizontalStrel
,
LinearDiagUpStrel
,
LinearDiagDownStrel
Strel.Shape
BACKGROUND, FOREGROUND
Constructor and Description |
---|
LinearVerticalStrel(int size)
Creates a new vertical linear structuring element of a given size.
|
LinearVerticalStrel(int size,
int offset)
Creates a new vertical linear structuring element of a given size and
with a given offset.
|
Modifier and Type | Method and Description |
---|---|
static LinearVerticalStrel |
fromDiameter(int diam)
Creates a new line-shape structuring element with the specified diameter
(equal to the length of the line).
|
static LinearVerticalStrel |
fromRadius(int radius)
Creates a new line-shape structuring element with the specified radius
(such that orthogonal diameter equals 2*radius+1).
|
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 dilation of the image given as argument, and stores the result
in the same image.
|
void |
inPlaceErosion(ij.process.ImageProcessor image)
Performs erosion of the image given as argument, and stores the result
in the same image.
|
LinearVerticalStrel |
reverse()
Returns a linear vertical line with same size and offset equal to size-offset-1.
|
closing, closing, dilation, dilation, erosion, erosion, inPlaceDilation, inPlaceErosion, opening, opening
addBorder, convertMaskToShifts, cropBorder, getChannelName, getMask3D, getShifts3D, setChannelName
addBorder, convertMaskToShifts, cropBorder, fireProgressChanged, fireProgressChanged, fireStatusChanged, fireStatusChanged, showProgress, showProgress
addAlgoListener, removeAlgoListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getChannelName, setChannelName
getMask3D, getShifts3D, showProgress, showProgress
addAlgoListener, removeAlgoListener
public LinearVerticalStrel(int size)
size
- the number of pixels in this structuring elementpublic LinearVerticalStrel(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 LinearVerticalStrel fromDiameter(int diam)
diam
- the length of the line along the Y directionpublic static final LinearVerticalStrel fromRadius(int radius)
radius
- the radius of the line, such that line length equals 2*radius+1public void inPlaceDilation(ij.process.ImageProcessor image)
InPlaceStrel
image
- the input image to dilatepublic void inPlaceErosion(ij.process.ImageProcessor image)
InPlaceStrel
image
- the input image to erodepublic int[][] getMask()
Strel
public int[] getOffset()
Strel
public int[][] getShifts()
Strel
public int[] getSize()
Strel
public LinearVerticalStrel reverse()
Strel.reverse()
Copyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.