public class ChamferMask3DW3 extends ChamferMask3D
ChamferMask3DW3Float
,
ChamferMask3DW4
ChamferMask3D.FloatOffset, ChamferMask3D.ShortOffset
BORGEFORS, CHESSBOARD, CITY_BLOCK, QUASI_EUCLIDEAN, SVENSSON_3_4_5_7
Constructor and Description |
---|
ChamferMask3DW3(int w0,
int w1,
int w2)
Creates a new ChamferWeights3D object by specifying the weights
associated to orthogonal, square-diagonal and cube-diagonal neighbors,
respectively.
|
ChamferMask3DW3(short[] weights)
Creates a new ChamferMask3D object by specifying the weights
associated to orthogonal and diagonal neighbors.
|
Modifier and Type | Method and Description |
---|---|
Collection<ChamferMask3D.ShortOffset> |
getBackwardOffsets() |
Collection<ChamferMask3D.ShortOffset> |
getForwardOffsets() |
short |
getShortNormalizationWeight() |
fromWeights, fromWeights, fromWeights, getBackwardFloatOffsets, getFloatOffsets, getForwardFloatOffsets, getNormalizationWeight, getOffsets
public ChamferMask3DW3(int w0, int w1, int w2)
w0
- the weight associated to orthogonal neighborsw1
- the weight associated to square-diagonal neighborsw2
- the weight associated to cube-diagonal neighborspublic ChamferMask3DW3(short[] weights)
weights
- the weights associated to the different types of offsetpublic Collection<ChamferMask3D.ShortOffset> getForwardOffsets()
getForwardOffsets
in class ChamferMask3D
public Collection<ChamferMask3D.ShortOffset> getBackwardOffsets()
getBackwardOffsets
in class ChamferMask3D
public short getShortNormalizationWeight()
getShortNormalizationWeight
in class ChamferMask3D
Copyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.