Class ContourTracerBase

java.lang.Object
boofcv.alg.filter.binary.ContourTracerBase

public class ContourTracerBase extends Object
Base implementation for different tracer connectivity rules.
  • Field Details

    • rule

      protected final ConnectRule rule
    • ruleN

      protected final int ruleN
    • binary

      protected GrayU8 binary
    • x

      protected int x
    • y

      protected int y
    • label

      protected int label
    • dir

      protected int dir
    • indexBinary

      protected int indexBinary
    • offsetsBinary

      protected int[] offsetsBinary
    • nextDirection

      protected int[] nextDirection
  • Constructor Details

    • ContourTracerBase

      public ContourTracerBase(ConnectRule rule)
      Specifies connectivity rule
      Parameters:
      rule - Specifies 4 or 8 as connectivity rule
  • Method Details

    • setInputs

      public void setInputs(GrayU8 binary)
      Specifies input binary image.
      Parameters:
      binary - Binary image with a border of zeros added to the outside.