public class LinearHorizontalStrel extends AbstractInPlaceStrel
LinearVerticalStrel, 
LinearDiagUpStrel, 
LinearDiagDownStrelStrel.ShapeBACKGROUND, FOREGROUND| Constructor and Description | 
|---|
LinearHorizontalStrel(int size)
Creates a new horizontal linear structuring element of a given size. 
 | 
LinearHorizontalStrel(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 LinearHorizontalStrel | 
fromDiameter(int diam)
Creates a new line-shape structuring element with the specified diameter
 (equal to the length of the line). 
 | 
static LinearHorizontalStrel | 
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. 
 | 
LinearHorizontalStrel | 
reverse()
Returns a linear horizontal line with same size and offset equal to size-offset-1. 
 | 
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 LinearHorizontalStrel(int size)
size - the number of pixels in this structuring elementpublic LinearHorizontalStrel(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 LinearHorizontalStrel fromDiameter(int diam)
diam - the length of the line along the X-directionpublic static final LinearHorizontalStrel 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 LinearHorizontalStrel reverse()
Strel.reverse()Copyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.