public class OrientedLineStrel extends AbstractStrel implements Strel
Strel.Shape
BACKGROUND, FOREGROUND
Constructor and Description |
---|
OrientedLineStrel(double length,
double angleInDegrees)
Creates an new instance of linear structuring element.
|
Modifier and Type | Method and Description |
---|---|
ij.process.ImageProcessor |
closing(ij.process.ImageProcessor image)
Performs a morphological closing on the input image, by applying first a
dilation, then an erosion with the reversed structuring element.
|
ij.process.ImageProcessor |
dilation(ij.process.ImageProcessor image)
Implements a default algorithm for dilation, that consists in iterating
over the neighbors of each pixel to compute the maximum value.
|
ij.process.ImageProcessor |
erosion(ij.process.ImageProcessor image)
Implements a default algorithm for erosion, that consists in iterating
over the neighbors of each pixel to compute the minimum value.
|
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.
|
ij.process.ImageProcessor |
opening(ij.process.ImageProcessor image)
Performs a morphological opening on the input image, by applying first an
erosion, then a dilation with the reversed structuring element.
|
Strel |
reverse()
Returns this structuring element, as oriented line structuring elements
are symmetric by definition.
|
addBorder, closing, convertMaskToShifts, cropBorder, dilation, erosion, getChannelName, getMask3D, getShifts3D, opening, 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
closing, dilation, erosion, getMask3D, getShifts3D, opening, showProgress, showProgress
addAlgoListener, removeAlgoListener
public OrientedLineStrel(double length, double angleInDegrees)
length
- the (approximate) length of the structuring element.angleInDegrees
- the angle with the horizontal of the structuring elementpublic int[] getSize()
public int[][] getMask()
public int[] getOffset()
public int[][] getShifts()
public ij.process.ImageProcessor dilation(ij.process.ImageProcessor image)
AbstractStrel
getShifts()
method.dilation
in interface Strel
dilation
in class AbstractStrel
image
- the input imageStrel.getShifts()
,
AbstractStrel.erosion(ImageProcessor)
public ij.process.ImageProcessor erosion(ij.process.ImageProcessor image)
AbstractStrel
getShifts()
method.erosion
in interface Strel
erosion
in class AbstractStrel
image
- the input imageStrel.getShifts()
,
AbstractStrel.dilation(ImageProcessor)
public ij.process.ImageProcessor closing(ij.process.ImageProcessor image)
AbstractStrel
closing
in interface Strel
closing
in class AbstractStrel
image
- the input imageAbstractStrel.dilation(ij.process.ImageProcessor)
,
AbstractStrel.erosion(ij.process.ImageProcessor)
,
AbstractStrel.opening(ij.process.ImageProcessor)
,
Strel3D.reverse()
public ij.process.ImageProcessor opening(ij.process.ImageProcessor image)
AbstractStrel
opening
in interface Strel
opening
in class AbstractStrel
image
- the input imageAbstractStrel.dilation(ij.process.ImageProcessor)
,
AbstractStrel.erosion(ij.process.ImageProcessor)
,
AbstractStrel.closing(ij.process.ImageProcessor)
,
Strel3D.reverse()
Copyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.