public abstract class ChamferMask3D extends Object
ChamferMask2D, 
ChamferDistanceTransform3D| Modifier and Type | Class and Description | 
|---|---|
static class  | 
ChamferMask3D.FloatOffset
The shift to a neighbor of a reference voxel, as a triplet (dx,dy,dz),
 and the associated weights given as a float. 
 | 
static class  | 
ChamferMask3D.ShortOffset
The shift to a neighbor of a reference voxel, as a triplet (dx,dy,dz),
 and the associated weights given as a short. 
 | 
| Modifier and Type | Field and Description | 
|---|---|
static ChamferMask3D | 
BORGEFORS
Use weights 3 for orthogonal neighbors, 4 for square-diagonal neighbors,
 and 5 for cube-diagonals (best approximation for 3-by-3-by-3 masks). 
 | 
static ChamferMask3D | 
CHESSBOARD
Use weights equal to 1 for all neighbors. 
 | 
static ChamferMask3D | 
CITY_BLOCK
Use weights 1 for orthogonal neighbors, 2 for square-diagonal neighbors,
 and 3 for cube-diagonals. 
 | 
static ChamferMask3D | 
QUASI_EUCLIDEAN
Use weights 1 for orthogonal neighbors, sqrt(2) for square-diagonal
 neighbors, and sqrt(3) for cube-diagonals. 
 | 
static ChamferMask3D | 
SVENSSON_3_4_5_7
Use weights 3 for orthogonal neighbors, 4 for square-diagonal neighbors,
 5 for cube-diagonals, and 7 for (2,1,1) shifts. 
 | 
| Constructor and Description | 
|---|
ChamferMask3D()  | 
| Modifier and Type | Method and Description | 
|---|---|
static ChamferMask3D | 
fromWeights(float[] weights)
Creates a new Chamfer mask from a list of weights. 
 | 
static ChamferMask3D | 
fromWeights(int[] weights)
Creates a new Chamfer mask from a list of weights. 
 | 
static ChamferMask3D | 
fromWeights(short[] weights)
Creates a new Chamfer mask from a list of weights. 
 | 
Collection<ChamferMask3D.FloatOffset> | 
getBackwardFloatOffsets()  | 
abstract Collection<ChamferMask3D.ShortOffset> | 
getBackwardOffsets()  | 
Collection<ChamferMask3D.FloatOffset> | 
getFloatOffsets()  | 
Collection<ChamferMask3D.FloatOffset> | 
getForwardFloatOffsets()  | 
abstract Collection<ChamferMask3D.ShortOffset> | 
getForwardOffsets()  | 
double | 
getNormalizationWeight()  | 
Collection<ChamferMask3D.ShortOffset> | 
getOffsets()  | 
abstract short | 
getShortNormalizationWeight()  | 
public static final ChamferMask3D CHESSBOARD
public static final ChamferMask3D CITY_BLOCK
public static final ChamferMask3D BORGEFORS
public static final ChamferMask3D QUASI_EUCLIDEAN
public static final ChamferMask3D SVENSSON_3_4_5_7
public static final ChamferMask3D fromWeights(int[] weights)
weights - the list of weights used for building the chamfer maskpublic static final ChamferMask3D fromWeights(short[] weights)
weights - the list of weights used for building the chamfer maskpublic static final ChamferMask3D fromWeights(float[] weights)
weights - the list of weights used for building the chamfer maskpublic Collection<ChamferMask3D.ShortOffset> getOffsets()
public Collection<ChamferMask3D.FloatOffset> getFloatOffsets()
public abstract Collection<ChamferMask3D.ShortOffset> getForwardOffsets()
public abstract Collection<ChamferMask3D.ShortOffset> getBackwardOffsets()
public Collection<ChamferMask3D.FloatOffset> getForwardFloatOffsets()
public Collection<ChamferMask3D.FloatOffset> getBackwardFloatOffsets()
public double getNormalizationWeight()
public abstract short getShortNormalizationWeight()
Copyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.