Minima, Maxima, and Saddle Points

As formulated above, the model applies to minima, maxima, and saddle points. However, it does not account for possible local rotations of the function. While such rotations are negligible to a first approximation for minima and maxima, they can be significant for saddle points.

The version of Equation (1.135) that accounts for possible rotations of the axes is

\begin{displaymath}
m_0 x^2 + m_1 x + m_2 y^2 + m_3 y + m_4 x y + m_5 = z
\end{displaymath} (1.138)

The system is fully compatible with the one presented in the previous section; the only difference is that it now has six unknowns, so at least six points in the neighborhood of the minimum, maximum, or saddle point must be processed. Here, too, there is no closed-form solution, but it is convenient to factorize the coefficient matrix.

The gradient of the function (1.138) vanishes at the point given by the solution of the linear system

\begin{displaymath}
\left\{ \begin{array}{l}
2 m_0 x + m_4 y = - m_1 \\
m_4 x + 2 m_2 y = - m_3 \\
\end{array} \right.
\end{displaymath} (1.139)

which can be readily solved using Cramer's rule.

Saddle points can be useful, for example, for locating checkerboard markers with subpixel accuracy.



Paolo medici
2026-10-19