public class ChamferMask2DW2 extends ChamferMask2D
ChamferMask2D.FloatOffset, ChamferMask2D.ShortOffset
BORGEFORS, 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, getOffsets
public 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 ChamferMask2D
public Collection<ChamferMask2D.ShortOffset> getBackwardOffsets()
getBackwardOffsets
in class ChamferMask2D
public short getShortNormalizationWeight()
getShortNormalizationWeight
in class ChamferMask2D
Copyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.