public interface PolygonHelper
DetectPolygonFromContour| Modifier and Type | Method and Description |
|---|---|
void |
configureBeforePolyline(PointsToPolyline contourToPolyline,
boolean touchesBorder)
Provide an oportunity to configure the polyline fit based on what's currently known
|
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(georegression.struct.shapes.Polygon2D_F64 undistorted,
georegression.struct.shapes.Polygon2D_F64 distorted,
org.ddogleg.struct.GrowQueue_B touches,
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 pixelsboolean 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(georegression.struct.shapes.Polygon2D_F64 undistorted,
georegression.struct.shapes.Polygon2D_F64 distorted,
org.ddogleg.struct.GrowQueue_B touches,
boolean touchesBorder)
undistorted - Polygon in undistorted image pixels.distorted - Polygon in distorted/original image pixels.touches - Array of booleans indicating which corners touch the image border. Only valid if part of it touchestouchesBorder - true if the contour touches the image border or false if it doesntvoid configureBeforePolyline(PointsToPolyline contourToPolyline, boolean touchesBorder)