Class ChamferMask3D.FloatOffset

java.lang.Object
inra.ijpb.binary.distmap.ChamferMask3D.FloatOffset
Enclosing class:
ChamferMask3D

public static class ChamferMask3D.FloatOffset
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 float.
  • Field Summary

    Fields
    Modifier and Type Field Description
    int dx
    the offset along the X-axis
    int dy
    the offset along the Y-axis
    int dz
    the offset along the Z-axis
    float weight
    the weight associated to this offset
  • Constructor Summary

    Constructors
    Constructor Description
    FloatOffset​(int dx, int dy, int dz, 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 dx
      the offset along the X-axis
    • dy

      public final int dy
      the offset along the Y-axis
    • dz

      public final int dz
      the offset along the Z-axis
    • weight

      public final float weight
      the weight associated to this offset
  • Constructor Details

    • FloatOffset

      public FloatOffset​(int dx, int dy, int dz, float weight)
      Creates a new Offset using a floating point weight.
      Parameters:
      dx - the offset along the X-axis
      dy - the offset along the Y-axis
      dz - the offset along the Z-axis
      weight - the weight of the offset