Class ChamferMask2DW2Float

java.lang.Object
inra.ijpb.binary.distmap.ChamferMask2D
inra.ijpb.binary.distmap.ChamferMask2DW2Float

public class ChamferMask2DW2Float
extends ChamferMask2D
Implementation of Chamfer Weights that manages two types of offsets, corresponding to orthogonal, and diagonal neighbors. This implementation manages two series of weights, one for integer computation, the other one for floating-point computation.
Author:
dlegland
See Also:
ChamferMask3DW3, ChamferMask3DW4
  • Constructor Details

    • ChamferMask2DW2Float

      public ChamferMask2DW2Float​(short[] shortWeights, float[] floatWeights)
      Creates a new chamfer mask
      Parameters:
      shortWeights - the offset weights used for integer computations
      floatWeights - the offset weights used for floating-point computations
  • Method Details