Class HysteresisEdgeTraceMark

java.lang.Object
boofcv.alg.feature.detect.edge.HysteresisEdgeTraceMark

public class HysteresisEdgeTraceMark extends Object
Given the output from edge non-maximum suppression, perform hysteresis threshold along the edge and mark selected pixels in a binary image. Points are first marked in direction tangential to the edge's direction, if no matches are found then a match is searched for using an 8-connect rule. The direction image must be the 4-direction type.
  • Field Details

  • Constructor Details

    • HysteresisEdgeTraceMark

      public HysteresisEdgeTraceMark()
  • Method Details

    • process

      public void process(GrayF32 intensity, GrayS8 direction, float lower, float upper, GrayU8 output)
      Performs hysteresis thresholding using the provided lower and upper thresholds.
      Parameters:
      intensity - Intensity image after edge non-maximum suppression has been applied. Modified.
      direction - 4-direction image. Not modified.
      lower - Lower threshold.
      upper - Upper threshold.
      output - Output binary image. Modified.
    • trace

      protected void trace(int x, int y, int indexInten)
      Traces along object's contour starting at the specified seed. As it does so it will set the intensity of points which are below the lower threshold to zero and add points to contour.