26.01.2015 Views

Least-Squares Circle Fit Given a finite set of points in R2, say { (x i,yi ...

Least-Squares Circle Fit Given a finite set of points in R2, say { (x i,yi ...

Least-Squares Circle Fit Given a finite set of points in R2, say { (x i,yi ...

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

October 24, 2006 10:22 am MDT Page 2 <strong>of</strong> 3<br />

Expand<strong>in</strong>g Eq. 2 gives<br />

∑ [<br />

u i u<br />

2<br />

i − 2 u i u c + u 2 c + vi 2 − 2 v i v c + vc 2 − α ] = 0<br />

i<br />

Def<strong>in</strong><strong>in</strong>g S u = ∑ i u i, S uu = ∑ i u2 i , etc., we can rewrite this as<br />

S uuu − 2 u c S uu + u 2 c S u + S uvv − 2 v c S uv + v 2 c S u − α S u = 0<br />

S<strong>in</strong>ce S u = 0 , this simplifies to<br />

u c S uu + v c S uv = 1 2 (S uuu + S uvv ) Eq. 4<br />

In a similar fashion, expand<strong>in</strong>g Eq. 3 and us<strong>in</strong>g S v = 0 gives<br />

u c S uv + v c S vv = 1 2 (S vvv + S vuu ) Eq. 5<br />

Solv<strong>in</strong>g Eq. 4 and Eq. 5 simultaneously gives (u c , v c ).<br />

orig<strong>in</strong>al coord<strong>in</strong>ate system is (x c , y c ) = (u c , v c ) + (x, y).<br />

Then the center (x c , y c ) <strong>of</strong> the circle <strong>in</strong> the<br />

To f<strong>in</strong>d the radius R, expand Eq. 1:<br />

∑ [<br />

u<br />

2<br />

i − 2 u i u c + u 2 c + vi 2 − 2 v i v c + vc 2 − α ] = 0<br />

i<br />

Us<strong>in</strong>g S u = S v = 0 aga<strong>in</strong>, we get<br />

N ( u 2 c + v2 c − α ) + S uu + S vv = 0<br />

Thus<br />

α = u 2 c + v2 c + S uu + S vv<br />

N<br />

Eq. 6<br />

and, <strong>of</strong> course, R = √ α.<br />

See the next page for an example!

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!