 
 
 
 
 
   
 of N
reference points Mi as well as the 2D retinal coordinates (ui, vi)
of their images. In general, we have at least 6 points, preferably more,
and they are arranged in a special pattern, such as that shown in figure 2.
There are several methods for obtaining the coefficients of the matrix
C. We will outline both linear and non-linear methods.
 of N
reference points Mi as well as the 2D retinal coordinates (ui, vi)
of their images. In general, we have at least 6 points, preferably more,
and they are arranged in a special pattern, such as that shown in figure 2.
There are several methods for obtaining the coefficients of the matrix
C. We will outline both linear and non-linear methods.
![\begin{displaymath}
\left[ \begin{array}
{c}
 su \\  sv \\  s
 \end{array} \righ...
 ...[ \begin{array}
{c}
 X \\  Y \\  Z \\  1
 \end{array} \right]. \end{displaymath}](img47.gif)


Xq11 + Yq12 + Zq13 + q14 - uXq31 - uYq32 - uZq33 = u
andXq21 + Yq22 + Zq23 + q24 - vXq31 - vYq32 - vZq33 = v.
In fact, using the given structure of C, this can be written in shorthand as


|  | (5) | 
 matrix and q is a
 matrix and q is a  vector.
 vector.
We will first solve this system, however, without taking into account any special structure in the matrix C.
So given a set of N 3D world points and their image coordinates, we can build up the following matrix equation:
![\begin{displaymath}
\left[ \begin{array}
{ccccccccccc}
 X_1 & Y_1 & Z_1 & 1 & 0 ...
 ... \\  . \\  . \\  . \\  . \\  u_m \\  v_m
 \end{array} \right], \end{displaymath}](img55.gif)
 .
.With 11 unknowns and each point providing 2 constraint equations, we need at least six points to solve the equation.
The best least squares estimate of the qij is obtained using the pseudo-inverse. If we write the equation above as
![\begin{displaymath}[{\bf B}]
[{\bf C}] = [{\bf UV}] \end{displaymath}](img57.gif)
![\begin{displaymath}[{\bf C}]
= [{\bf B}]^+[{\bf UV}]. \end{displaymath}](img58.gif)
![\begin{displaymath}[{\bf B}]
^+ = [{\bf B}^{\top}{\bf B}]^{-1}{\bf B}^{\top}. \end{displaymath}](img59.gif)
In general, this matrix equation is very ill-conditioned and care must be taken in finding its solution.
Let's return now to the formulation given in equation (5). This is just
a system of linear equation and we want to solve for q. Constraints
must be imposed upon q however, to avoid the trivial solution
q = 0, which is not physically significant. It is natural to use the
constraints given to us by the structure of the matrix C, namely
 and
 and  . This is done via a technique known as constrained
optimisation, which we will not cover in lectures. Suffice it to say, it
leads to a closed form solution. What is of more interest though, is the 
question of the rank of the matrix L, since this leads to an 
understanding of how the reference points should be chosen.
. This is done via a technique known as constrained
optimisation, which we will not cover in lectures. Suffice it to say, it
leads to a closed form solution. What is of more interest though, is the 
question of the rank of the matrix L, since this leads to an 
understanding of how the reference points should be chosen.
We know from standard linear algebra that if we have an  matrix L then
matrix L then

It is possible to re-cast the problem of solving equation (5) as a non-linear minimization problem, where we attempt to minimize the distance in the image plane between the points mi and the re-projected points Mi. We can do this by defining the quantity

 . In general, non-linear methods
lead to much more robust solutions.
. In general, non-linear methods
lead to much more robust solutions.
 
 
 
 
