Regression to a Conic

The regression of a parabola, circle, or ellipse can clearly be generalized to any arbitrarily oriented conic (Section 1.7).

Let $(x_i, y_i)^{\top}$, with $i=1, \ldots, n$, be noisy points belonging to the locus to be estimated.

Equation (1.92) can be rewritten in the form

\begin{displaymath}
\mathbf{a}_i^{\top}\boldsymbol\beta=0
\end{displaymath} (4.110)

where $\mathbf{a}_i=\left\{ x_i^2, x_i y_i, y_i^2, x_i, y_i, 1 \right\}$ and $\boldsymbol\beta=\left\{ a,b,c,d,e,f \right\}$ from which it is clear that the parameters $\boldsymbol\beta$ of any conic can be obtained by solving a homogeneous problem of type $\mathbf{A}\boldsymbol\beta=0$ in six unknowns, minimizing a quantity of the form
\begin{displaymath}
S = \sum_{i=1}^{n} \mathbf{a}_i^{\top}\boldsymbol\beta
\end{displaymath} (4.111)

This solution clearly minimizes an algebraic rather than a geometric error and is therefore not the optimal estimator.

An alternative formulation for obtaining the parameters of conics can be found in (FPF99).

Finally, to determine whether a point is close to the equation of a conic, or to obtain a geometric approximation of the point-to-conic distance, the Sampson error (Section 4.3.8) can be computed. This uses the fact that, for a conic with equation (1.92), the gradient of the manifold has a particularly simple form:

\begin{displaymath}
\nabla f (x,y) = \left( 2 a x + b y + d, b x + 2 c y + e \right)
\end{displaymath} (4.112)

Paolo medici
2026-10-01