circle_fit

menpo.math.circlefit.circle_fit(coords)[source]

Find the least squares circle fitting a set of 2D points (x,y).

Parameters:

coords : (N, 2) ndarray

Set of x and y coordinates.

Returns:

centre_i : (2,)

The 2D coordinates of the centre of the circle.

r_i : double

The radius of the circle.

References

[R9]http://www.scipy.org/Cookbook/Least_Squares_Circle