Class RefinePolygonToContour


public class RefinePolygonToContour
extends Object
Fits lines to the contour then finds the intersection of the lines. This should provide a more accurate line estimate than using the contour corner pixels alone.
  • Constructor Details

    • RefinePolygonToContour

      public RefinePolygonToContour()
  • Method Details

    • process

      public void process​(List<Point2D_I32> contour, DogArray_I32 vertexes, Polygon2D_F64 output)
      Refines the estimate using all the points in the contour
      contour - (Input) The shape's contour
      vertexes - (Input) List of indexes that are vertexes in the contour
      output - (Output) Storage for where the found polygon is saved to