Package boofcv.factory.shape
Class ConfigPolygonFromContour
java.lang.Object
boofcv.factory.shape.ConfigPolygonFromContour
- All Implemented Interfaces:
Configuration
,Serializable
Configuration for
DetectPolygonFromContour
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionboolean
If false then polygons which touch the image border are prunedboolean
Will the found polygons be in clockwise order?Connect rule for contour finding in binary image.Configuration for fitting a polygon to the contour.Specifies the maximum allowed contour length.Specifies the minimum allowed contour length.double
The minimum allowed edge intensity for a shape.double
Tangential distance away in pixels from the contour that the edge intensity is sampled. -
Constructor Summary
ConstructorDescriptionConfigPolygonFromContour
(boolean clockwise, int minimumSides, int maximumSides) ConfigPolygonFromContour
(int minimumSides, int maximumSides) Specifies the number of sides in the polygon and uses default settings for everything else -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface boofcv.struct.Configuration
serializeActiveFields, serializeInitialize
-
Field Details
-
canTouchBorder
public boolean canTouchBorderIf false then polygons which touch the image border are pruned -
contourRule
Connect rule for contour finding in binary image. -
contourToPoly
Configuration for fitting a polygon to the contour. -
minimumEdgeIntensity
public double minimumEdgeIntensityThe 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 tangentEdgeIntensityTangential distance away in pixels from the contour that the edge intensity is sampled. -
minimumContour
Specifies the minimum allowed contour length. Relative lengths will be relative with to the image's sqrt(width*height). -
maximumContour
Specifies the maximum allowed contour length. Relative lengths will be relative with to the image's sqrt(width*height). -
clockwise
public boolean clockwiseWill 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
-
setTo
-
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 interfaceConfiguration
-
toString
-