#include <vgl_h_matrix_2d_optimize.h>
Public Member Functions | |
vgl_h_matrix_2d_optimize (vgl_h_matrix_2d< double > const &initial_h) | |
virtual | ~vgl_h_matrix_2d_optimize () |
void | set_verbose (bool v) |
set this to true for verbose run-time information. | |
void | set_trace (bool trace) |
Termination tolerance on the gradient of the projection error. | |
void | set_htol (const double htol) |
Termination tolerance on change in the solution. | |
void | set_ftol (const double ftol) |
Termination tolerance on the sum of squared projection errors. | |
void | set_gtol (const double gtol) |
Termination tolerance on the gradient of the projection error. | |
virtual int | minimum_number_of_correspondences () const =0 |
bool | optimize (vcl_vector< vgl_homg_point_2d< double > > const &points1, vcl_vector< vgl_homg_point_2d< double > > const &points2, vgl_h_matrix_2d< double > &H) |
optimize homography from matched points. | |
bool | optimize (vcl_vector< vgl_homg_line_2d< double > > const &lines1, vcl_vector< vgl_homg_line_2d< double > > const &lines2, vgl_h_matrix_2d< double > &H) |
optimize homography from matched lines. | |
bool | optimize (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) |
optimize homography from matched points and lines. | |
vgl_h_matrix_2d< double > | optimize (vcl_vector< vgl_homg_point_2d< double > > const &p1, vcl_vector< vgl_homg_point_2d< double > > const &p2) |
optimize homography from matched points - return h_matrix. | |
vgl_h_matrix_2d< double > | optimize (vcl_vector< vgl_homg_line_2d< double > > const &l1, vcl_vector< vgl_homg_line_2d< double > > const &l2) |
optimize homography from matched lines - return h_matrix. | |
vgl_h_matrix_2d< double > | optimize (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) |
optimize homography from matched points and lines - return h_matrix. | |
Protected Member Functions | |
virtual bool | optimize_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)=0 |
virtual bool | optimize_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)=0 |
virtual bool | optimize_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)=0 |
Protected Attributes | |
bool | verbose_ |
bool | trace_ |
double | ftol_ |
double | gtol_ |
double | htol_ |
int | max_iter_ |
vgl_h_matrix_2d< double > | initial_h_ |
Definition at line 71 of file vgl_h_matrix_2d_optimize.h.
vgl_h_matrix_2d_optimize::vgl_h_matrix_2d_optimize | ( | vgl_h_matrix_2d< double > const & | initial_h | ) | [inline] |
Definition at line 74 of file vgl_h_matrix_2d_optimize.h.
virtual vgl_h_matrix_2d_optimize::~vgl_h_matrix_2d_optimize | ( | ) | [inline, virtual] |
Definition at line 78 of file vgl_h_matrix_2d_optimize.h.
virtual int vgl_h_matrix_2d_optimize::minimum_number_of_correspondences | ( | ) | const [pure virtual] |
Implemented in vgl_h_matrix_2d_optimize_lmq.
bool vgl_h_matrix_2d_optimize::optimize | ( | 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] |
optimize homography from matched points.
Definition at line 106 of file vgl_h_matrix_2d_optimize.h.
bool vgl_h_matrix_2d_optimize::optimize | ( | 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] |
optimize homography from matched lines.
Definition at line 114 of file vgl_h_matrix_2d_optimize.h.
bool vgl_h_matrix_2d_optimize::optimize | ( | 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] |
optimize homography from matched points and lines.
Definition at line 122 of file vgl_h_matrix_2d_optimize.h.
vgl_h_matrix_2d<double> vgl_h_matrix_2d_optimize::optimize | ( | vcl_vector< vgl_homg_point_2d< double > > const & | p1, |
vcl_vector< vgl_homg_point_2d< double > > const & | p2 | ||
) | [inline] |
optimize homography from matched points - return h_matrix.
Definition at line 133 of file vgl_h_matrix_2d_optimize.h.
vgl_h_matrix_2d<double> vgl_h_matrix_2d_optimize::optimize | ( | vcl_vector< vgl_homg_line_2d< double > > const & | l1, |
vcl_vector< vgl_homg_line_2d< double > > const & | l2 | ||
) | [inline] |
optimize homography from matched lines - return h_matrix.
Definition at line 139 of file vgl_h_matrix_2d_optimize.h.
vgl_h_matrix_2d<double> vgl_h_matrix_2d_optimize::optimize | ( | 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] |
optimize homography from matched points and lines - return h_matrix.
Definition at line 145 of file vgl_h_matrix_2d_optimize.h.
virtual bool vgl_h_matrix_2d_optimize::optimize_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, pure virtual] |
Implemented in vgl_h_matrix_2d_optimize_lmq.
virtual bool vgl_h_matrix_2d_optimize::optimize_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, pure virtual] |
Implemented in vgl_h_matrix_2d_optimize_lmq.
virtual bool vgl_h_matrix_2d_optimize::optimize_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, pure virtual] |
Implemented in vgl_h_matrix_2d_optimize_lmq.
void vgl_h_matrix_2d_optimize::set_ftol | ( | const double | ftol | ) | [inline] |
Termination tolerance on the sum of squared projection errors.
The optimization is done in a normalized coordinate frame with unity point domain radius.
Definition at line 92 of file vgl_h_matrix_2d_optimize.h.
void vgl_h_matrix_2d_optimize::set_gtol | ( | const double | gtol | ) | [inline] |
Termination tolerance on the gradient of the projection error.
Definition at line 95 of file vgl_h_matrix_2d_optimize.h.
void vgl_h_matrix_2d_optimize::set_htol | ( | const double | htol | ) | [inline] |
Termination tolerance on change in the solution.
Definition at line 87 of file vgl_h_matrix_2d_optimize.h.
void vgl_h_matrix_2d_optimize::set_trace | ( | bool | trace | ) | [inline] |
Termination tolerance on the gradient of the projection error.
Definition at line 84 of file vgl_h_matrix_2d_optimize.h.
void vgl_h_matrix_2d_optimize::set_verbose | ( | bool | v | ) | [inline] |
set this to true for verbose run-time information.
Definition at line 81 of file vgl_h_matrix_2d_optimize.h.
double vgl_h_matrix_2d_optimize::ftol_ [protected] |
Definition at line 154 of file vgl_h_matrix_2d_optimize.h.
double vgl_h_matrix_2d_optimize::gtol_ [protected] |
Definition at line 155 of file vgl_h_matrix_2d_optimize.h.
double vgl_h_matrix_2d_optimize::htol_ [protected] |
Definition at line 156 of file vgl_h_matrix_2d_optimize.h.
vgl_h_matrix_2d<double> vgl_h_matrix_2d_optimize::initial_h_ [protected] |
Definition at line 158 of file vgl_h_matrix_2d_optimize.h.
int vgl_h_matrix_2d_optimize::max_iter_ [protected] |
Definition at line 157 of file vgl_h_matrix_2d_optimize.h.
bool vgl_h_matrix_2d_optimize::trace_ [protected] |
Definition at line 153 of file vgl_h_matrix_2d_optimize.h.
bool vgl_h_matrix_2d_optimize::verbose_ [protected] |
Definition at line 152 of file vgl_h_matrix_2d_optimize.h.