Documentation of 'boofcv.factory.shape.ConfigPolygonDetector' Java class
ConfigPolygonDetector
boofcv.factory.shape

Class ConfigPolygonDetector

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      boolean canTouchBorder
      If false then polygons which touch the image border are pruned
      boolean clockwise
      Will the found polygons be in clockwise order?
      int contour2Poly_iterations
      Number of split and merge iterations when converting contour into polygon
      double contour2Poly_minimumSideFraction
      The minimum allowed length of a side as a fraction of the total contour length
      double contour2Poly_splitFraction
      A line is split if a point along the contour between the two end points has a distance from the line which is greater than this fraction of the line's length
      boolean convex
      Does it require that the found polygons be convex?
      int maximumSides
      Maximum number of sides
      double minContourImageWidthFraction
      Specifies the minimum allowed contour length as a fraction of the input image's width.
      double minimumEdgeIntensity
      The minimum allowed edge intensity for a shape.
      int minimumSides
      Minimum number of sides
      Configuration refine
      Configuration for sub-pixel refinement of line.
      double splitPenalty
      Magic number used to penalize a polygon when a new corner is added
    • Constructor Summary

      Constructors 
      Constructor and Description
      ConfigPolygonDetector(boolean clockwise, int minimumSides, int maximumSides) 
      ConfigPolygonDetector(int minimumSides, int maximumSides)
      Specifies the number of sides in the polygon and uses default settings for everything else
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void checkValidity()
      Checks to see if the configuration is valid.
      java.lang.String toString() 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • minimumSides

        public int minimumSides
        Minimum number of sides
      • maximumSides

        public int maximumSides
        Maximum number of sides
      • canTouchBorder

        public boolean canTouchBorder
        If false then polygons which touch the image border are pruned
      • contour2Poly_splitFraction

        public double contour2Poly_splitFraction
        A line is split if a point along the contour between the two end points has a distance from the line which is greater than this fraction of the line's length
      • contour2Poly_iterations

        public int contour2Poly_iterations
        Number of split and merge iterations when converting contour into polygon
      • contour2Poly_minimumSideFraction

        public double contour2Poly_minimumSideFraction
        The minimum allowed length of a side as a fraction of the total contour length
      • splitPenalty

        public double splitPenalty
        Magic number used to penalize a polygon when a new corner is added
        See Also:
        MinimizeEnergyPrune
      • minimumEdgeIntensity

        public double minimumEdgeIntensity

        The minimum allowed edge intensity for a shape. Used to remove false positives generated by noise, which is especially common when using a local threshold during binarization.

        Set to zero to disable.

        See Also:
        PolygonEdgeIntensity
      • minContourImageWidthFraction

        public double minContourImageWidthFraction
        Specifies the minimum allowed contour length as a fraction of the input image's width. Smaller numbers mean smaller objects are allowed.
      • clockwise

        public boolean clockwise
        Will the found polygons be in clockwise order?
      • convex

        public boolean convex
        Does it require that the found polygons be convex?
    • Constructor Detail

      • ConfigPolygonDetector

        public ConfigPolygonDetector(int minimumSides,
                                     int maximumSides)
        Specifies the number of sides in the polygon and uses default settings for everything else
      • ConfigPolygonDetector

        public ConfigPolygonDetector(boolean clockwise,
                                     int minimumSides,
                                     int maximumSides)
    • Method Detail

      • checkValidity

        public void checkValidity()
        Description copied from interface: Configuration
        Checks to see if the configuration is valid. If it is invalid, throw an exception explaining what is incorrect.
        Specified by:
        checkValidity in interface Configuration
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.