public class ChamferMask2DW4 extends ChamferMask2D
ChamferMask2D.FloatOffset, ChamferMask2D.ShortOffset
BORGEFORS, CHESSBOARD, CHESSKNIGHT, CITY_BLOCK, QUASI_EUCLIDEAN, VERWER
Constructor and Description |
---|
ChamferMask2DW4(int a,
int b,
int c,
int d)
Creates a new ChamferWeights2DW3 object by specifying the weights
associated to orthogonal and diagonal neighbors.
|
ChamferMask2DW4(short[] weights)
Creates a new ChamferMask3D 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 ChamferMask2DW4(int a, int b, int c, int d)
a
- the weight associated to orthogonal neighborsb
- the weight associated to diagonal neighborsc
- the weight associated to chess-knight move neighborsd
- the weight associated to (3,1) shift and its permutationspublic ChamferMask2DW4(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.