File Exchange

image thumbnail

circle_fit

version 1.0.0.0 (1.53 KB) by Val Schmidt
A function to fit a circle to a set of 2D points

9 Downloads

Updated 24 Apr 2012

View License

Given a scatter of 2D points, circle fit will find the center and radius of the best (in the least-squares sense) fit circle.

Cite As

Val Schmidt (2020). circle_fit (https://www.mathworks.com/matlabcentral/fileexchange/36361-circle_fit), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (5)

Eva Pogna

Thank you very much, extremely useful!

li

Val Schmidt

Ah! Thanks. Very helpful.

Eric

This seems equivalent to http://www.mathworks.com/matlabcentral/fileexchange/5557-circle-fit. Also, other algorithms are often more accurate when fitting data along only an arc (e.g., http://www.mathworks.com/matlabcentral/fileexchange/22643 ).

A good reference for fitting data to circles: "Least Squares Fitting of Circles" by N. Chernov and C. Lesort, Journal of Mathematical Imaging and Vision, Vol 23, 239-252 (2005). Nikolai Chernov has several good functions in the FEX for fitting to circles and ellipses.

MATLAB Release Compatibility
Created with R2011b
Compatible with any release
Platform Compatibility
Windows macOS Linux