The fitting of a parabola, circle, or ellipse can clearly be generalized to any arbitrarily oriented conic (Section 1.7).
Let
, with
, be noisy points belonging to the locus to be estimated.
Equation (1.92) can be rewritten in the form
It is therefore clear that the parameters
of a general conic can be estimated by solving a homogeneous problem of the form
Since the system admits the trivial solution
,
a suitable normalization constraint must be introduced, and the parameters estimated by minimizing a cost function of the form
| (4.124) |
This solution minimizes an algebraic error, not the geometric point-to-conic distance, and is therefore not generally an optimal estimator.
An alternative formulation specifically for direct least-squares ellipse fitting can be found in (FPF99).
Finally, to estimate how close a point is to the conic, or to approximate the geometric point-to-conic distance, the Sampson error can be used (Section 4.3.8). This requires the gradient of the implicit function associated with the conic defined by Equation (1.92), which has the form
| (4.125) |
Paolo medici