Code covered by the BSD License

### Highlights from Fast Circle fitting using Landau method

5.0
5.0 | 1 rating Rate this file 21 Downloads (last 30 days) File Size: 1.35 KB File ID: #44219 Version: 1.2

# Fast Circle fitting using Landau method

### Sumith YD (view profile)

08 Nov 2013 (Updated )

Uses a non iterative and geometric fit which makes it computationally efficient and accurate.

File Information
Description

Based on the research paper "A Simple approach for the Estimation of Circular Arc Center and Its radius", Thomas and Chan, Computer vision, graphics and image processing 45, 362-370 (1989)
Use of geometric fit makes this more accurate than least square approximations.

Acknowledgements

Circle Fit inspired this file.

Required Products MATLAB
MATLAB release MATLAB 8.1 (R2013a)
MATLAB Search Path
`/`
13 Jun 2014 xd1231

### xd1231 (view profile)

Easy to use...Do you have a c++ version of this?

07 Nov 2013 Sumith YD

### Sumith YD (view profile)

%here is a demo on how to use above function with random data. Make sure you have Landau_new.m file on the same folder as this file.

clear;
R = 6.57; xc = 12; yc = -8;
thetas = 0:pi/180:2*pi;
x = xc + R*cos(thetas);
y = yc + R*sin(thetas);
mult = 0.2;
x = x+mult*randn(size(x));
y = y+mult*randn(size(y));

[xcnew,ycnew,Rnew] = Landau_new(x,y);
theta=0:pi/180:2*pi;
xcircle = R*cos(theta')+xc;
ycircle = R*sin(theta')+yc;
plot(x,y,'.',xcircle,ycircle,'LineWidth',2);
axis equal;

Comment only