Fit an ellipse to the boundary contour points
contour_ellipse_fit(contour_points, chull = F)
contour_points | a cimg or data frame of contour points. If a cimg, must be a pixset (0s and 1s). If a data frame, must have columns x and y |
---|---|
chull | use the convex hull of the points? |
a data frame of ellipse parameters: X, Y for the center, A, B for the major and minor axes, and angle for the rotation angle.