Class ChamferMask2D.ShortOffset

java.lang.Object
inra.ijpb.binary.distmap.ChamferMask2D.ShortOffset
Enclosing class:
ChamferMask2D

public static class ChamferMask2D.ShortOffset
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 short.
  • Field Summary

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

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

      public final int dy
      The offset along the Y-axis
    • weight

      public final short weight
      The weight associated to this offset
  • Constructor Details

    • ShortOffset

      public ShortOffset​(int dx, int dy, short weight)
      Creates a new Offset using a 16-bits integer weight.
      Parameters:
      dx - the offset along the X-axis
      dy - the offset along the Y-axis
      weight - the weight of the offset