public class ConfigPolygonDetector
extends java.lang.Object
implements boofcv.struct.Configuration
DetectPolygonFromContour for use in FactoryShapeDetector.| Modifier and Type | Field and Description |
|---|---|
boolean |
adjustForThresholdBias
Because of how a binary image is created the contour is biases along some sided.
|
ConfigPolygonFromContour |
detector
Configuration for detecting polygons from their contour
|
double |
minimumRefineEdgeIntensity
The minimum allowed edge intensity for a shape after refinement.
|
boolean |
refineContour
If true then a contour based refinement will be run to improve the polygon estimate.
|
ConfigRefinePolygonLineToImage |
refineGray
Configuration for sub-pixel refinement of line.
|
| Constructor and Description |
|---|
ConfigPolygonDetector() |
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 ConfigPolygonFromContour detector
public double minimumRefineEdgeIntensity
The minimum allowed edge intensity for a shape after refinement. 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 boolean refineContour
public boolean adjustForThresholdBias
public ConfigRefinePolygonLineToImage refineGray
public ConfigPolygonDetector(int minimumSides,
int maximumSides)
public ConfigPolygonDetector(boolean clockwise,
int minimumSides,
int maximumSides)
public ConfigPolygonDetector()