Class ConfigPolygonFromContour

java.lang.Object
boofcv.factory.shape.ConfigPolygonFromContour
All Implemented Interfaces:
Configuration, Serializable

public class ConfigPolygonFromContour extends Object implements Configuration
Configuration for DetectPolygonFromContour
See Also:
  • Field Details

    • canTouchBorder

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

      public ConnectRule contourRule
      Connect rule for contour finding in binary image.
    • contourToPoly

      public BaseConfigPolyline contourToPoly
      Configuration for fitting a polygon to the contour.
    • 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:
    • tangentEdgeIntensity

      public double tangentEdgeIntensity
      Tangential distance away in pixels from the contour that the edge intensity is sampled.
    • minimumContour

      public ConfigLength minimumContour
      Specifies the minimum allowed contour length. Relative lengths will be relative with to the image's sqrt(width*height).
    • maximumContour

      public ConfigLength maximumContour
      Specifies the maximum allowed contour length. Relative lengths will be relative with to the image's sqrt(width*height).
    • clockwise

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

    • ConfigPolygonFromContour

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

      public ConfigPolygonFromContour(boolean clockwise, int minimumSides, int maximumSides)
    • ConfigPolygonFromContour

      public ConfigPolygonFromContour()
  • Method Details