public class ChamferMask2DW2 extends ChamferMask2D
ChamferMask2D.FloatOffset, ChamferMask2D.ShortOffsetBORGEFORS, CHESSBOARD, CHESSKNIGHT, CITY_BLOCK, QUASI_EUCLIDEAN, VERWER| Constructor and Description |
|---|
ChamferMask2DW2(int a,
int b)
Creates a new ChamferWeights3D object by specifying the weights
associated to orthogonal and diagonal neighbors.
|
ChamferMask2DW2(short[] weights)
Creates a new ChamferMask2D object by specifying the weights associated
to orthogonal and diagonal neighbors.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<ChamferMask2D.ShortOffset> |
getBackwardOffsets() |
Collection<ChamferMask2D.ShortOffset> |
getForwardOffsets() |
short |
getShortNormalizationWeight() |
fromWeights, fromWeights, fromWeights, getBackwardFloatOffsets, getFloatOffsets, getForwardFloatOffsets, getNormalizationWeight, getOffsetspublic ChamferMask2DW2(int a,
int b)
a - the weight associated to orthogonal neighborsb - the weight associated to diagonal neighborspublic ChamferMask2DW2(short[] weights)
weights - the weights associated to the different types of offsetpublic Collection<ChamferMask2D.ShortOffset> getForwardOffsets()
getForwardOffsets in class ChamferMask2Dpublic Collection<ChamferMask2D.ShortOffset> getBackwardOffsets()
getBackwardOffsets in class ChamferMask2Dpublic short getShortNormalizationWeight()
getShortNormalizationWeight in class ChamferMask2DCopyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.