public class LinearDiagDownStrel extends AbstractInPlaceStrel
LinearHorizontalStrel,
LinearVerticalStrel,
LinearDiagUpStrelStrel.ShapeBACKGROUND, FOREGROUND| Constructor and Description |
|---|
LinearDiagDownStrel(int size)
Creates a new diagonal linear structuring element of a given size.
|
LinearDiagDownStrel(int size,
int offset)
Creates a new diagonal linear structuring element of a given size and
with a given offset.
|
| Modifier and Type | Method and Description |
|---|---|
static LinearDiagDownStrel |
fromDiameter(int diam)
Creates a new line-shape structuring element with the specified diameter
(equal to the orthogonal length of the line).
|
static LinearDiagDownStrel |
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.
|
LinearDiagDownStrel |
reverse()
Returns a linear diagonal line with same size and offset equal to size-offset.
|
closing, closing, dilation, dilation, erosion, erosion, inPlaceDilation, inPlaceErosion, opening, openingaddBorder, convertMaskToShifts, cropBorder, getChannelName, getMask3D, getShifts3D, setChannelNameaddBorder, convertMaskToShifts, cropBorder, fireProgressChanged, fireProgressChanged, fireStatusChanged, fireStatusChanged, showProgress, showProgressaddAlgoListener, removeAlgoListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChannelName, setChannelNamegetMask3D, getShifts3D, showProgress, showProgressaddAlgoListener, removeAlgoListenerpublic LinearDiagDownStrel(int size)
size - the number of pixels in this structuring elementpublic LinearDiagDownStrel(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 LinearDiagDownStrel fromDiameter(int diam)
diam - the orthogonal diameter of the linepublic static final LinearDiagDownStrel fromRadius(int radius)
radius - the radius of the line, such that line length equals 2*radius+1public void inPlaceDilation(ij.process.ImageProcessor image)
InPlaceStrelimage - the input image to dilatepublic void inPlaceErosion(ij.process.ImageProcessor image)
InPlaceStrelimage - the input image to erodepublic int[][] getMask()
Strelpublic int[] getOffset()
Strelpublic int[][] getShifts()
Strelpublic int[] getSize()
Strelpublic LinearDiagDownStrel reverse()
Strel.reverse()Copyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.