public interface PolygonHelper
BinaryPolygonDetector| Modifier and Type | Method and Description |
|---|---|
void |
adjustBeforeOptimize(georegression.struct.shapes.Polygon2D_F64 polygon)
This function is invoked just before a polygon's edge is optimized.
|
boolean |
filterContour(java.util.List<georegression.struct.point.Point2D_I32> contour,
boolean touchesBorder,
boolean distorted)
User defined filter to accept/reject or modify the contour of a shape.
|
boolean |
filterPixelPolygon(java.util.List<georegression.struct.point.Point2D_I32> externalUndist,
java.util.List<georegression.struct.point.Point2D_I32> externalDist,
org.ddogleg.struct.GrowQueue_I32 splits,
boolean touchesBorder)
Function which allows a custom filter function to be used on the pixel level precise polygon
|
void |
setImageShape(int width,
int height)
Specifies width and height of the image being processed
|
void setImageShape(int width,
int height)
width - Image width in pixelsheight - Image height in pixelsvoid adjustBeforeOptimize(georegression.struct.shapes.Polygon2D_F64 polygon)
boolean filterContour(java.util.List<georegression.struct.point.Point2D_I32> contour,
boolean touchesBorder,
boolean distorted)
contour - External contour around a shape. Can be modifiedtouchesBorder - true if the contour touches the image border or false if it doesntdistorted - True if pixels are distorted or false for undistorted pixel coordinatesboolean filterPixelPolygon(java.util.List<georegression.struct.point.Point2D_I32> externalUndist,
java.util.List<georegression.struct.point.Point2D_I32> externalDist,
org.ddogleg.struct.GrowQueue_I32 splits,
boolean touchesBorder)
externalUndist - External contour around a shape in undistorted pixel coordinates. Can be modifiedexternalDist - External contour around a shape in distorted pixel coordinates. Modifications ignored.splits - Indexes in the contour where the polygon has a vertextouchesBorder - true if the contour touches the image border or false if it doesnt