Class DetectPolygonFromContour.Info

Enclosing class:
DetectPolygonFromContour<T extends ImageGray<T>>

public static class DetectPolygonFromContour.Info extends Object
  • Field Details

    • external

      public boolean external
      Was it created from an external or internal contour
    • edgeInside

      public double edgeInside
      Average pixel intensity score along the polygon's edge inside and outside
    • edgeOutside

      public double edgeOutside
      Average pixel intensity score along the polygon's edge inside and outside
    • contourTouchesBorder

      public boolean contourTouchesBorder
      True if the shape's contour touches the image border
    • borderCorners

      public DogArray_B borderCorners
      Boolean value for each corner being along the border. If empty then non of the corners are long the border. true means the corner is a border corner.
    • polygon

      public Polygon2D_F64 polygon
      Polygon in undistorted image pixels.
    • polygonDistorted

      public Polygon2D_F64 polygonDistorted
      Polygon in the original (distorted) image pixels
    • splits

      public DogArray_I32 splits
    • contour

      public ContourPacked contour
      Contour that the shape was fit to. The point coordinates will be in undistorted coordinates if an undistortion function was passed in.
  • Constructor Details

    • Info

      public Info()
  • Method Details

    • computeEdgeIntensity

      public double computeEdgeIntensity()
    • hasInternal

      public boolean hasInternal()
    • reset

      public void reset()