Class RefinePolygonToContour

  • public class RefinePolygonToContour
    extends java.lang.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 Detail

      • RefinePolygonToContour

        public RefinePolygonToContour()
    • Method Detail

      • process

        public void process​(java.util.List<Point2D_I32> contour,
                            GrowQueue_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