#include <vgl_h_matrix_2d_compute_rigid_body.h>
Public Member Functions | |
vgl_h_matrix_2d_compute_rigid_body () | |
Construct a vgl_h_matrix_2d_compute_rigid_body object. | |
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 (not implemented). | |
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. | |
bool | solve_rigid_body_problem (int equ_count, vcl_vector< vgl_homg_point_2d< double > >const &p1, vcl_vector< vgl_homg_point_2d< double > >const &p2, vgl_h_matrix_2d< double > &H) |
Assumes all corresponding points have equal weight. | |
Protected Attributes | |
bool | verbose_ |
Definition at line 17 of file vgl_h_matrix_2d_compute_rigid_body.h.
vgl_h_matrix_2d_compute_rigid_body::vgl_h_matrix_2d_compute_rigid_body | ( | ) |
Construct a vgl_h_matrix_2d_compute_rigid_body object.
Definition at line 15 of file vgl_h_matrix_2d_compute_rigid_body.cxx.
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_rigid_body::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.
Implements vgl_h_matrix_2d_compute.
Definition at line 124 of file vgl_h_matrix_2d_compute_rigid_body.cxx.
bool vgl_h_matrix_2d_compute_rigid_body::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 (not implemented).
Implements vgl_h_matrix_2d_compute.
Definition at line 230 of file vgl_h_matrix_2d_compute_rigid_body.cxx.
bool vgl_h_matrix_2d_compute_rigid_body::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.
Implements vgl_h_matrix_2d_compute.
Definition at line 81 of file vgl_h_matrix_2d_compute_rigid_body.cxx.
bool vgl_h_matrix_2d_compute_rigid_body::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 181 of file vgl_h_matrix_2d_compute_rigid_body.cxx.
int vgl_h_matrix_2d_compute_rigid_body::minimum_number_of_correspondences | ( | ) | const [inline, virtual] |
Implements vgl_h_matrix_2d_compute.
Definition at line 55 of file vgl_h_matrix_2d_compute_rigid_body.h.
bool vgl_h_matrix_2d_compute_rigid_body::solve_rigid_body_problem | ( | int | equ_count, |
vcl_vector< vgl_homg_point_2d< double > >const & | p1, | ||
vcl_vector< vgl_homg_point_2d< double > >const & | p2, | ||
vgl_h_matrix_2d< double > & | H | ||
) | [protected] |
Assumes all corresponding points have equal weight.
Compute the rigid body transformation between point sets.
Definition at line 27 of file vgl_h_matrix_2d_compute_rigid_body.cxx.
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.