Package inra.ijpb.binary.distmap
Class ChamferMask2D.FloatOffset
java.lang.Object
inra.ijpb.binary.distmap.ChamferMask2D.FloatOffset
- Enclosing class:
- ChamferMask2D
public static class ChamferMask2D.FloatOffset
extends java.lang.Object
The shift to a neighbor of a reference pixel, as a pair (dx,dy),
and the associated weights given as a float.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description FloatOffset(int dx, int dy, float weight)
Creates a new Offset using a floating point 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 -
weight
public final float weightThe weight associated to this offset
-
-
Constructor Details
-
FloatOffset
public FloatOffset(int dx, int dy, float weight)Creates a new Offset using a floating point weight.- Parameters:
dx
- the offset along the X-axisdy
- the offset along the Y-axisweight
- the weight of the offset
-