#include <PMatrixComputeLinear.h>
Public Member Functions | |
bool | compute (vcl_vector< HomgPoint2D > const &points1, vcl_vector< HomgPoint3D > const &points2, PMatrix *P) |
bool | compute (vcl_vector< vgl_homg_point_2d< double > > const &points1, vcl_vector< vgl_homg_point_3d< double > > const &points2, PMatrix *P) |
Compute a projection matrix using linear least squares. |
Definition at line 25 of file PMatrixComputeLinear.h.
bool PMatrixComputeLinear::compute | ( | vcl_vector< HomgPoint2D > const & | points1, |
vcl_vector< HomgPoint3D > const & | points2, | ||
PMatrix * | P | ||
) |
Definition at line 88 of file PMatrixComputeLinear.cxx.
bool PMatrixComputeLinear::compute | ( | vcl_vector< vgl_homg_point_2d< double > > const & | points1, |
vcl_vector< vgl_homg_point_3d< double > > const & | points2, | ||
PMatrix * | P | ||
) |
Compute a projection matrix using linear least squares.
Input is a list of 3D-2D point correspondences.
Return false if the calculation fails or there are fewer than six point matches in the list.
The algorithm finds the nullvector of the following design matrix, where the 3d points are projected into 2d points .
Definition at line 35 of file PMatrixComputeLinear.cxx.