Content deleted Content added
Olexa Riznyk (talk | contribs) Adding a wikilink, fixing style/layout errors |
|||
Line 20:
RHT starts by randomly selecting three points on the ellipse. Let them be <math>X_1</math>, <math>X_2</math> and <math>X_3</math>. The first step is to find the tangents of these three points. They can be found by fitting a straight line using [[least squares]] technique for a small window of neighboring pixels.
The next step is to find the intersection points of the tangent lines. This can be easily done by solving the line equations found in the previous step. Then let the intersection points be <math>T_{12}</math> and
Let the coordinates of ellipse center found in previous step be <math>(x_0, y_0)</math>. Then the center can be translated to the origin with <math>x' = x-x_0</math> and <math>y' = y-y_0</math> so that the ellipse equation can be simplified to:
|