public class ChamferStrel extends AbstractStrel
Strel.Shape
BACKGROUND, FOREGROUND
Constructor and Description |
---|
ChamferStrel(ChamferMask2D chamferMask,
double radius)
Creates a new ChamferStrel from a chamfer mask (used for computing
distances) and a radius (used to computing the extent of propagation).
|
Modifier and Type | Method and Description |
---|---|
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.
|
Strel |
reverse()
Returns a reversed (i.e.
|
addBorder, closing, closing, convertMaskToShifts, cropBorder, dilation, dilation, erosion, erosion, getChannelName, getMask3D, getShifts3D, opening, opening, setChannelName
addBorder, convertMaskToShifts, cropBorder, fireProgressChanged, fireProgressChanged, fireStatusChanged, fireStatusChanged, showProgress, showProgress
addAlgoListener, removeAlgoListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
showProgress, showProgress
addAlgoListener, removeAlgoListener
public ChamferStrel(ChamferMask2D chamferMask, double radius)
chamferMask
- the chamfer maskradius
- the radiuspublic int[] getSize()
Strel
public int[][] getMask()
Strel
public int[] getOffset()
Strel
public int[][] getShifts()
Strel
Copyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.