public class ConfigPolygonFromContour
extends java.lang.Object
implements boofcv.struct.Configuration
DetectPolygonFromContour| 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?
|
boofcv.struct.ConnectRule |
contourRule
Connect rule for contour finding in binary image.
|
ConfigPolyline |
contourToPoly
Configuration for fitting a polygon to the contour.
|
boofcv.struct.ConfigLength |
minimumContour
Specifies the minimum allowed contour length.
|
double |
minimumEdgeIntensity
The minimum allowed edge intensity for a shape.
|
double |
tangentEdgeIntensity
Tangential distance away in pixels from the contour that the edge intensity is sampled.
|
| Constructor and Description |
|---|
ConfigPolygonFromContour(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
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkValidity() |
java.lang.String |
toString() |
public boolean canTouchBorder
public boofcv.struct.ConnectRule contourRule
public ConfigPolyline contourToPoly
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.
EdgeIntensityPolygonpublic double tangentEdgeIntensity
public boofcv.struct.ConfigLength minimumContour
public boolean clockwise
public ConfigPolygonFromContour(int minimumSides,
int maximumSides)
public ConfigPolygonFromContour(boolean clockwise,
int minimumSides,
int maximumSides)