BestEllipse2
Describes an ellipse that best fits a set of points.
Elements
Name | Type | Description |
---|---|---|
center | PointFloat | The coordinate location of the center of the ellipse. |
majorAxisStart | PointFloat | The coordinate location of the start of the major axis of the ellipse. |
majorAxisEnd | PointFloat | The coordinate location of the end of the major axis of the ellipse. |
minorAxisStart | PointFloat | The coordinate location of the start of the minor axis of the ellipse. |
minorAxisEnd | PointFloat | The coordinate location of the end of the minor axis of the ellipse. |
area | double | The area of the ellipse. |
perimeter | double | The length of the perimeter of the ellipse. |
error | double | Represents the least square error of the fitted ellipse to the entire set of points. |
valid | int | This element is TRUE if the function achieved the minimum score within the number of allowed refinement iterations and FALSE if the function did not achieve the minimum score. |
pointsUsed | int* | An array of the indexes for the points array indicating which points the function used to fit the ellipse. If rejectOutliers is FALSE, this array is set to NULL. |
numPointsUsed | int | The number of points the function used to fit the ellipse. |