public class FindQuadCorners
extends java.lang.Object
| Constructor and Description |
|---|
FindQuadCorners() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
computeResponse(java.util.List<georegression.struct.point.Point2D_I32> contour,
int radius,
double[] response)
Computes the acute angle for each pixel in the contour.
|
protected static georegression.struct.point.Point2D_I32 |
findAverage(java.util.List<georegression.struct.point.Point2D_I32> contour,
georegression.struct.point.Point2D_I32 ret)
Find the average of all the points in the list.
|
java.util.List<georegression.struct.point.Point2D_I32> |
process(java.util.List<georegression.struct.point.Point2D_I32> contour)
Finds corners from list of contour points and orders contour points into clockwise order.
|
protected static void |
sortByAngleCCW(georegression.struct.point.Point2D_I32 center,
java.util.List<georegression.struct.point.Point2D_I32> contour)
Sorts the points in counter clockwise direction around the provided point
|
public java.util.List<georegression.struct.point.Point2D_I32> process(java.util.List<georegression.struct.point.Point2D_I32> contour)
contour - An unordered list of contour points. Is modified to be on clockwise order.protected static georegression.struct.point.Point2D_I32 findAverage(java.util.List<georegression.struct.point.Point2D_I32> contour,
georegression.struct.point.Point2D_I32 ret)
protected static void sortByAngleCCW(georegression.struct.point.Point2D_I32 center,
java.util.List<georegression.struct.point.Point2D_I32> contour)
center - Point that the angle is computed relative tocontour - List of all the points which are to be sorted by angleprotected void computeResponse(java.util.List<georegression.struct.point.Point2D_I32> contour,
int radius,
double[] response)