Figure 4: Left: Edge image containing a small elliptic edge
segment (red). Right: Ellipses fitted to 155 edge points
overlaid on the original image. From inner to outer are the
ellipses computed by least squares (pink), Taubin method
(blue), proposed method (red), and maximum likelihood
(green). The proposed and Taubin method compute almost
overlapping ellipses.
Fig. 3(b): The Taubin solution is more accurate than
the least squares, and our solution is even more accu-
rate.
On the other hand, the ML solution, which mini-
mizes the Mahalanobis distance rather than the alge-
braic distance, has a larger bias than our solution, as
shown in Fig. 3(a). Yet, since the covariance matrix
of the ML solution is smaller than Eq. (38) (Kanatani,
2008), it achieves a higher accuracy than our solution,
as shown in Fig. 3(b). However, the ML computation
may not converge in the presence of large noise. In-
deed, the interrupted plots of ML in Figs. 1(a) and (b)
indicate that the iterations did not converge beyond
that noise level. In contrast, our method, like the least
squares and the Taubin method, is algebraic, so the
computation can continue for however large noise.
The left of Fig. 4 is an edge image where a short
elliptic arc (red) is visible. We fitted an ellipse to the
155 consecutive edge points on it by least squares,
the Taubin method, our method, and ML. The right
of Fig. 4 shows the resulting ellipses overlaid on the
original image. We can see that the least squares solu-
tion is very poor, while the Taubin solution is close to
the true shape. Our method and ML are slightly more
accurate, but generally the difference is very small
when the number of points is large and the noise is
small as in this example.
8 CONCLUSIONS
We have presented a new algebraic method for fitting
an ellipse to a point sequence extracted from images.
The method known to be of the highest accuracy is
maximum likelihood, but it requires iterations, which
may not converge in the presence of lage noise. Also,
an appropriate initial must be given. Our proposed
method is algebraic and does not require iterations.
The basic principle is minimization of the alge-
braic distance. However, the solution depends on
what kind of normalization is imposed. We exploited
this freedom and derived a best normalization in such
a way that the resulting solution has no bias up to the
second order, invoking the high order error analysis
of Kanatani (2008). Numerical experiments show that
our method is superior to the Taubin method, also an
algebraic method and known to be very accurate.
ACKNOWLEDGEMENTS
The authors thank Yuuki Iwamoto of Okayama Uni-
versity for his assistance in numerical experiments.
This work was supported in part by the Ministry of
Education, Culture, Sports, Science, and Technology,
Japan, under a Grant in Aid for Scientific Research C
(No. 21500172).
REFERENCES
Albano, R. (1974). Representation of digitized contours in
terms of conics and straight-line segments, Comput.
Graphics Image Process., 3, 23–33.
Al-Sharadqah, A. and Chernov, N. (2009). Error analysis
for circle fitting algorithms, Elec. J. Stat., 3, 886-911.
Bookstein, F. J. (1979). Fitting conic sections to scattered
data, Comput. Graphics Image Process., 9, 56–71.
Chernov, N. and Lesort, C. (2004). Statistical efficiency
of curve fitting algorithms, Comput. Stat. Data Anal.,
47, 713–728.
Chojnacki, W., Brooks, M. J., van den Hengel, A. and
D. Gawley, D. (2000). On the fitting of surfaces to
data with covariances, IEEE Trans. Patt. Anal. Mach.
Intell., 22, 1294–1303.
Cooper, D. B. and Yalabik, N. (1976). On the computa-
tional cost of approximating and recognizing noise-
perturbed straight lines and quadratic arcs in the plane,
IEEE Trans. Computers, 25, 1020–1032.
Fitzgibbon, A., Pilu, M. and Fisher, R. B. (1999). Direct
least square fitting of ellipses, IEEE Trans. Patt. Anal.
Mach. Intell., 21, 476–480.
Gander, W., Golub, H. and Strebel, R. (1995). Least-squares
fitting of circles and ellipses, BIT, 34, 558–578.
Gnanadesikan, R. (1977). Methods for Statistical Data
Analysis of Multivariable Observations (2nd ed.),
Hoboken, NJ: Wiley.
Hartley, R. and Zisserman, A. (2004). Multiple View Geom-
etry in Computer Vision (2nd ed.), Cambridge: Cam-
bridge University Press.
Kanatani, K. (2006). Ellipse fitting with hyperaccuracy, IE-
ICE Trans. Inf. & Syst., E89-D, 2653–2660.
Kanatani, K. (1993). Geometric Computation for Machine
Vision, Oxford: Oxford University Press.
HYPERACCURATE ELLIPSE FITTING WITHOUT ITERATIONS
11