|
Many data-regression problems require a metric for determining how far an is from the true model. To do this, it would be useful to have an estimate
of the observation without its noise component, that is, a data point that lies exactly on the model. Neither quantity can normally be obtained directly without introducing unknown auxiliary variables.
However, these values can be estimated by linearizing the model function around the observation.
Let be a noisy observation and let
be a multidimensional manifold representing a geometric model.
Suppose there is an ideal point
on the manifold such that
| (4.66) |
The residual is an algebraic measure of the distance between the point and the model and provides no useful information in absolute terms: replacing the function with a nonzero multiple of itself leaves the locus of points unchanged, but changes the function's value accordingly.
For isotropic Gaussian noise, the maximum-likelihood metric is the geometric distance between the observed point
and the ideal point
on the model, that is, the norm of the noise vector
.
We therefore consider the problem of computing an approximate distance between the point
and a geometric manifold defined implicitly by the equation
, where
By definition, the point
on the manifold that is closest to the point
is the point that minimizes the geometric error
| (4.67) |
The difference between minimizing a linear algebraic quantity and minimizing a nonlinear geometric quantity has motivated the search for a possible compromise.
The Sampson method, originally developed for manifolds such as conics, relies on an assumption that can also be applied to a range of other problems: the implicit function must be approximable by a linear function in a neighborhood of the point
.
The manifold defined by the constraint
can be approximated using a Taylor expansion:
| (4.68) |
This is the equation of an affine subspace in and, in the special case
, of a hyperplane. The distance between the point
and this linear approximation of the manifold is called the Sampson distance or approximate maximum likelihood (AML). The Sampson error is the geometric distance between the point and the linearized version of the function.
The problem is now to find the point closest to
, that is, to minimize
subject to the linear constraint
Since this is a constrained minimization problem, its solution can be derived using Lagrange multipliers. Linearizing the constraint and assuming that has full row rank gives
| (4.70) |
The vector
is the minimum correction required to satisfy the linearized constraint. Its norm estimates the distance from the point
to the manifold and can be used, for example, in algorithms such as RANSAC to identify outliers, or as an alternative cost function to the Euclidean norm.
The vector
is the correction associated with the Sampson distance. The quantity
| (4.71) |
In the important special case , the Sampson distance reduces to
| (4.72) |
Practical applications of the Sampson error include computing the distance between a point and a conic (see Section 4.6.7), the distance of a pair of points from a homography, and the distance between a pair of corresponding points with respect to the Fundamental matrix (Section 10.4.2).
The preceding formulation can be extended to the case of anisotropic noise by introducing a Mahalanobis metric:
| (4.73) |
| (4.74) |
Paolo medici