Class DetectPolygonFromContour.Info

    • Field Detail

      • 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 GrowQueue_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
      • 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 Detail

      • Info

        public Info()
    • Method Detail

      • computeEdgeIntensity

        public double computeEdgeIntensity()
      • hasInternal

        public boolean hasInternal()
      • reset

        public void reset()