View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Circle Fit (Pratt method)

5.0 | 5 ratings Rate this file 77 Downloads (last 30 days) File Size: 2.18 KB File ID: #22643 Version: 1.0
image thumbnail

Circle Fit (Pratt method)


Nikolai Chernov (view profile)


Fits a circle to a set of data points on a plane; returns the circle center (a,b) and radius R.

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

| Watch this File

File Information

This is a robust and accurate circle fit. It works well even if data
points are observed only within a small arc. This circle fit was proposed by V. Pratt in article "Direct least-squares fitting of algebraic surfaces", Computer Graphics, Vol. 21, pages 145-152 (1987). It is more stable than the simple Circle Fit by Kasa (file #5557).


Circle Fit inspired this file.

MATLAB release MATLAB 6.0 (R12)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (7)
21 Jan 2017 GrantWard

It works perfectly and helps me so much,thank you.

03 Aug 2015 John

John (view profile)

14 May 2015 Anton Jigalin

05 Mar 2015 tejas harish

can anyone please tell me how to give inputs to circle fit by pratt method.

Comment only
15 Jan 2015 rabeeah

i need to fit a circle to find the curvature of a line at various points using the radius. can u suggest a way to check my results. Thank u in advance.

Comment only
28 May 2009 Gwen Bailey

Thank you very much for this algorithm. I was looking for an algorithm to fit a small number of data points (around 50) to a small portion of a circle (less than 10 degrees of the outline) and found this one to work perfectly. I had previously been using the Bucher circle fit and found it to be nowhere near as accurate or stable (although it is faster).

Thanks again!

28 May 2009 Gwen Bailey

Contact us