public class ConfigPolygonDetector
extends java.lang.Object
implements boofcv.struct.Configuration
BinaryPolygonConvexDetector for use in FactoryShapeDetector.| Modifier and Type | Field and Description |
|---|---|
boolean |
clockwise
Will the found polygons be in clockwise order?
|
ConfigRefinePolygonCornersToImage |
configRefineCorners
Configuration for refining with corners.
|
ConfigRefinePolygonLineToImage |
configRefineLines
Configuration for refining with lines.
|
int |
contour2Poly_iterations
Number of split and merge iterations when converting contour into polygon
|
double |
contour2Poly_mergeTolerance
Two lines are merged together if their angle is <= to this number.
|
double |
contour2Poly_splitDistanceFraction
Number of pixels, as a fraction of contour length, to split a new line in SplitMergeLineFitLoop.
|
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[] |
numberOfSides
Number of sides in the polygon it's trying to detect
|
boolean |
refineWithCorners
Subpixel refinement using corners.
|
boolean |
refineWithLines
Subpixel refinement using lines.
|
| Constructor and Description |
|---|
ConfigPolygonDetector(boolean clockwise,
int... numberOfSides) |
ConfigPolygonDetector(int... numberOfSides)
Specifies the number of sides in the polygon and uses default settings for everything else
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkValidity() |
java.lang.String |
toString() |
public int[] numberOfSides
public double contour2Poly_mergeTolerance
public int contour2Poly_iterations
public double contour2Poly_splitDistanceFraction
public boolean refineWithLines
public boolean refineWithCorners
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.
PolygonEdgeScorepublic double minContourImageWidthFraction
public boolean clockwise
public ConfigRefinePolygonLineToImage configRefineLines
public ConfigRefinePolygonCornersToImage configRefineCorners