contour_ellipse_fit: Fit an ellipse to the boundary contour points

Description Usage Arguments Value

View source: R/ellipse.R

Description

Fit an ellipse to the boundary contour points

Usage

1
contour_ellipse_fit(contour_points, chull = F)

Arguments

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?

Value

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.


srvanderplas/ShoeAlignR documentation built on Jan. 23, 2021, 4:03 a.m.