public class ConfigPolygonDetector
extends java.lang.Object
implements boofcv.struct.Configuration
BinaryPolygonDetector for use in FactoryShapeDetector.| 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
|
boofcv.struct.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 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
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkValidity() |
java.lang.String |
toString() |
public int minimumSides
public int maximumSides
public boolean canTouchBorder
public double contour2Poly_splitFraction
public int contour2Poly_iterations
public double contour2Poly_minimumSideFraction
public double splitPenalty
MinimizeEnergyPrunepublic 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.
PolygonEdgeIntensitypublic double minContourImageWidthFraction
public boolean clockwise
public boolean convex
public boofcv.struct.Configuration refine
public ConfigPolygonDetector(int minimumSides,
int maximumSides)
public ConfigPolygonDetector(boolean clockwise,
int minimumSides,
int maximumSides)