#include <vgl_h_matrix_2d_compute_4point.h>
Public Member Functions | |
int | minimum_number_of_correspondences () const |
void | verbose (bool v) |
bool | compute (vcl_vector< vgl_homg_point_2d< double > > const &points1, vcl_vector< vgl_homg_point_2d< double > > const &points2, vgl_h_matrix_2d< double > &H) |
homography from matched points. | |
bool | compute (vcl_vector< vgl_homg_line_2d< double > > const &lines1, vcl_vector< vgl_homg_line_2d< double > > const &lines2, vgl_h_matrix_2d< double > &H) |
homography from matched lines. | |
bool | compute (vcl_vector< vgl_homg_line_2d< double > > const &lines1, vcl_vector< vgl_homg_line_2d< double > > const &lines2, vcl_vector< double > const &weights, vgl_h_matrix_2d< double > &H) |
homography from matched lines with a weight vector. | |
bool | compute (vcl_vector< vgl_homg_point_2d< double > > const &points1, vcl_vector< vgl_homg_point_2d< double > > const &points2, vcl_vector< vgl_homg_line_2d< double > > const &lines1, vcl_vector< vgl_homg_line_2d< double > > const &lines2, vgl_h_matrix_2d< double > &H) |
homography from matched points and lines. | |
vgl_h_matrix_2d< double > | compute (vcl_vector< vgl_homg_point_2d< double > > const &p1, vcl_vector< vgl_homg_point_2d< double > > const &p2) |
homography from matched points - return h_matrix. | |
vgl_h_matrix_2d< double > | compute (vcl_vector< vgl_homg_line_2d< double > > const &l1, vcl_vector< vgl_homg_line_2d< double > > const &l2) |
homography from matched lines - return h_matrix. | |
vgl_h_matrix_2d< double > | compute (vcl_vector< vgl_homg_line_2d< double > > const &l1, vcl_vector< vgl_homg_line_2d< double > > const &l2, vcl_vector< double > const &weights) |
homography from matched lines with weight vector - return h_matrix. | |
vgl_h_matrix_2d< double > | compute (vcl_vector< vgl_homg_point_2d< double > > const &p1, vcl_vector< vgl_homg_point_2d< double > > const &p2, vcl_vector< vgl_homg_line_2d< double > > const &l1, vcl_vector< vgl_homg_line_2d< double > > const &l2) |
homography from matched points and lines - return h_matrix. | |
Protected Member Functions | |
virtual bool | compute_p (vcl_vector< vgl_homg_point_2d< double > > const &points1, vcl_vector< vgl_homg_point_2d< double > > const &points2, vgl_h_matrix_2d< double > &H) |
compute from matched points. | |
virtual bool | compute_l (vcl_vector< vgl_homg_line_2d< double > > const &lines1, vcl_vector< vgl_homg_line_2d< double > > const &lines2, vgl_h_matrix_2d< double > &H) |
compute from matched lines. | |
virtual bool | compute_l (vcl_vector< vgl_homg_line_2d< double > > const &lines1, vcl_vector< vgl_homg_line_2d< double > > const &lines2, vcl_vector< double > const &weights, vgl_h_matrix_2d< double > &H) |
compute from matched lines with weight vector. | |
virtual bool | compute_pl (vcl_vector< vgl_homg_point_2d< double > > const &points1, vcl_vector< vgl_homg_point_2d< double > > const &points2, vcl_vector< vgl_homg_line_2d< double > > const &lines1, vcl_vector< vgl_homg_line_2d< double > > const &lines2, vgl_h_matrix_2d< double > &H) |
compute from matched points and lines. | |
Protected Attributes | |
bool | verbose_ |
Definition at line 25 of file vgl_h_matrix_2d_compute_4point.h.
bool vgl_h_matrix_2d_compute::compute | ( | vcl_vector< vgl_homg_point_2d< double > > const & | points1, |
vcl_vector< vgl_homg_point_2d< double > > const & | points2, | ||
vgl_h_matrix_2d< double > & | H | ||
) | [inline, inherited] |
homography from matched points.
Definition at line 49 of file vgl_h_matrix_2d_compute.h.
bool vgl_h_matrix_2d_compute::compute | ( | vcl_vector< vgl_homg_line_2d< double > > const & | lines1, |
vcl_vector< vgl_homg_line_2d< double > > const & | lines2, | ||
vgl_h_matrix_2d< double > & | H | ||
) | [inline, inherited] |
homography from matched lines.
Definition at line 57 of file vgl_h_matrix_2d_compute.h.
bool vgl_h_matrix_2d_compute::compute | ( | vcl_vector< vgl_homg_line_2d< double > > const & | lines1, |
vcl_vector< vgl_homg_line_2d< double > > const & | lines2, | ||
vcl_vector< double > const & | weights, | ||
vgl_h_matrix_2d< double > & | H | ||
) | [inline, inherited] |
homography from matched lines with a weight vector.
Definition at line 65 of file vgl_h_matrix_2d_compute.h.
bool vgl_h_matrix_2d_compute::compute | ( | vcl_vector< vgl_homg_point_2d< double > > const & | points1, |
vcl_vector< vgl_homg_point_2d< double > > const & | points2, | ||
vcl_vector< vgl_homg_line_2d< double > > const & | lines1, | ||
vcl_vector< vgl_homg_line_2d< double > > const & | lines2, | ||
vgl_h_matrix_2d< double > & | H | ||
) | [inline, inherited] |
homography from matched points and lines.
Definition at line 74 of file vgl_h_matrix_2d_compute.h.
vgl_h_matrix_2d<double> vgl_h_matrix_2d_compute::compute | ( | vcl_vector< vgl_homg_point_2d< double > > const & | p1, |
vcl_vector< vgl_homg_point_2d< double > > const & | p2 | ||
) | [inline, inherited] |
homography from matched points - return h_matrix.
Definition at line 85 of file vgl_h_matrix_2d_compute.h.
vgl_h_matrix_2d<double> vgl_h_matrix_2d_compute::compute | ( | vcl_vector< vgl_homg_line_2d< double > > const & | l1, |
vcl_vector< vgl_homg_line_2d< double > > const & | l2 | ||
) | [inline, inherited] |
homography from matched lines - return h_matrix.
Definition at line 91 of file vgl_h_matrix_2d_compute.h.
vgl_h_matrix_2d<double> vgl_h_matrix_2d_compute::compute | ( | vcl_vector< vgl_homg_line_2d< double > > const & | l1, |
vcl_vector< vgl_homg_line_2d< double > > const & | l2, | ||
vcl_vector< double > const & | weights | ||
) | [inline, inherited] |
homography from matched lines with weight vector - return h_matrix.
Definition at line 97 of file vgl_h_matrix_2d_compute.h.
vgl_h_matrix_2d<double> vgl_h_matrix_2d_compute::compute | ( | vcl_vector< vgl_homg_point_2d< double > > const & | p1, |
vcl_vector< vgl_homg_point_2d< double > > const & | p2, | ||
vcl_vector< vgl_homg_line_2d< double > > const & | l1, | ||
vcl_vector< vgl_homg_line_2d< double > > const & | l2 | ||
) | [inline, inherited] |
homography from matched points and lines - return h_matrix.
Definition at line 104 of file vgl_h_matrix_2d_compute.h.
bool vgl_h_matrix_2d_compute_4point::compute_l | ( | vcl_vector< vgl_homg_line_2d< double > > const & | lines1, |
vcl_vector< vgl_homg_line_2d< double > > const & | lines2, | ||
vgl_h_matrix_2d< double > & | H | ||
) | [protected, virtual] |
compute from matched lines.
Compute a plane-plane projectivity using 4 line correspondences.
Returns false if the calculation fails or there are fewer than four line matches in the list.
Implementation is the dual of the implementation of compute_p()
Implements vgl_h_matrix_2d_compute.
Definition at line 37 of file vgl_h_matrix_2d_compute_4point.cxx.
bool vgl_h_matrix_2d_compute_4point::compute_l | ( | vcl_vector< vgl_homg_line_2d< double > > const & | lines1, |
vcl_vector< vgl_homg_line_2d< double > > const & | lines2, | ||
vcl_vector< double > const & | weights, | ||
vgl_h_matrix_2d< double > & | H | ||
) | [protected, virtual] |
compute from matched lines with weight vector.
Implements vgl_h_matrix_2d_compute.
Definition at line 50 of file vgl_h_matrix_2d_compute_4point.cxx.
bool vgl_h_matrix_2d_compute_4point::compute_p | ( | vcl_vector< vgl_homg_point_2d< double > > const & | points1, |
vcl_vector< vgl_homg_point_2d< double > > const & | points2, | ||
vgl_h_matrix_2d< double > & | H | ||
) | [protected, virtual] |
compute from matched points.
Compute a plane-plane projectivity using 4 point correspondences.
Returns false if the calculation fails or there are fewer than four point matches in the list.
The algorithm determines the transformation from each pointset to the canonical projective basis (see h_matrix_2d::projective_basis), and returns the combined transform .
Implements vgl_h_matrix_2d_compute.
Definition at line 17 of file vgl_h_matrix_2d_compute_4point.cxx.
bool vgl_h_matrix_2d_compute_4point::compute_pl | ( | vcl_vector< vgl_homg_point_2d< double > > const & | points1, |
vcl_vector< vgl_homg_point_2d< double > > const & | points2, | ||
vcl_vector< vgl_homg_line_2d< double > > const & | lines1, | ||
vcl_vector< vgl_homg_line_2d< double > > const & | lines2, | ||
vgl_h_matrix_2d< double > & | H | ||
) | [protected, virtual] |
compute from matched points and lines.
Implements vgl_h_matrix_2d_compute.
Definition at line 64 of file vgl_h_matrix_2d_compute_4point.cxx.
int vgl_h_matrix_2d_compute_4point::minimum_number_of_correspondences | ( | ) | const [inline, virtual] |
Implements vgl_h_matrix_2d_compute.
Definition at line 28 of file vgl_h_matrix_2d_compute_4point.h.
void vgl_h_matrix_2d_compute::verbose | ( | bool | v | ) | [inline, inherited] |
Definition at line 37 of file vgl_h_matrix_2d_compute.h.
bool vgl_h_matrix_2d_compute::verbose_ [protected, inherited] |
Definition at line 111 of file vgl_h_matrix_2d_compute.h.