StraightEdgeReport
Information describing a calculated straight edge.
Elements
Name | Type | Description |
---|---|---|
start | PointFloat | The coordinates location of the start of the calculated edge. The point is located at the intersection of the edge with the first search line scanned by the function. If the function does not detect any edges or the edges do not fit to a valid line, it sets start to {0, 0}. |
end | PointFloat | The coordinates location of the end of the calculated edge. The point is located at the intersection of the edge with the last search line scanned by the function. If the function does not detect any edges or the edges do not fit to a valid line, it sets end to {0, 0}. |
straightness | double | The straightness of the calculated edge, which is equal to the least-square error of the fitted line to th entire set of coordinates. If the function does not detect any edges or the edges do not fit a valid line, the straightness is set to zero. |
coordinates | PointFloat* | An array of detected edge coordinates the function used to calculate the location of the straight edge. |
numCoordinates | int | The number of detected edge coordinates. |