Package inra.ijpb.binary.distmap
Class ChamferMask3D.ShortOffset
java.lang.Object
inra.ijpb.binary.distmap.ChamferMask3D.ShortOffset
- Enclosing class:
- ChamferMask3D
public static class ChamferMask3D.ShortOffset
extends java.lang.Object
The shift to a neighbor of a reference voxel, as a triplet (dx,dy,dz),
and the associated weights given as a short.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ShortOffset(int dx, int dy, int dz, short weight)
Creates a new Offset using a 16-bits integer weight. -
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
dx
public final int dxthe offset along the X-axis -
dy
public final int dythe offset along the Y-axis -
dz
public final int dzthe offset along the Z-axis -
weight
public final short weightthe weight associated to this offset
-
-
Constructor Details
-
ShortOffset
public ShortOffset(int dx, int dy, int dz, short weight)Creates a new Offset using a 16-bits integer weight.- Parameters:
dx
- the offset along the X-axisdy
- the offset along the Y-axisdz
- the offset along the Z-axisweight
- the weight of the offset
-