Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vgl_h_matrix_2d_optimize Class Referenceabstract

#include <vgl_h_matrix_2d_optimize.h>

Inheritance diagram for vgl_h_matrix_2d_optimize:
Inheritance graph
[legend]

Public Member Functions

 vgl_h_matrix_2d_optimize (vgl_h_matrix_2d< double > const &initial_h)
 
virtual ~vgl_h_matrix_2d_optimize ()=default
 
void set_verbose (bool v)
 set this to true for verbose run-time information. More...
 
void set_trace (bool trace)
 Termination tolerance on the gradient of the projection error. More...
 
void set_htol (const double htol)
 Termination tolerance on change in the solution. More...
 
void set_ftol (const double ftol)
 Termination tolerance on the sum of squared projection errors. More...
 
void set_gtol (const double gtol)
 Termination tolerance on the gradient of the projection error. More...
 
virtual int minimum_number_of_correspondences () const =0
 
bool optimize (std::vector< vgl_homg_point_2d< double > > const &points1, std::vector< vgl_homg_point_2d< double > > const &points2, vgl_h_matrix_2d< double > &H)
 optimize homography from matched points. More...
 
bool optimize (std::vector< vgl_homg_line_2d< double > > const &lines1, std::vector< vgl_homg_line_2d< double > > const &lines2, vgl_h_matrix_2d< double > &H)
 optimize homography from matched lines. More...
 
bool optimize (std::vector< vgl_homg_point_2d< double > > const &points1, std::vector< vgl_homg_point_2d< double > > const &points2, std::vector< vgl_homg_line_2d< double > > const &lines1, std::vector< vgl_homg_line_2d< double > > const &lines2, vgl_h_matrix_2d< double > &H)
 optimize homography from matched points and lines. More...
 
vgl_h_matrix_2d< double > optimize (std::vector< vgl_homg_point_2d< double > > const &p1, std::vector< vgl_homg_point_2d< double > > const &p2)
 optimize homography from matched points - return h_matrix. More...
 
vgl_h_matrix_2d< double > optimize (std::vector< vgl_homg_line_2d< double > > const &l1, std::vector< vgl_homg_line_2d< double > > const &l2)
 optimize homography from matched lines - return h_matrix. More...
 
vgl_h_matrix_2d< double > optimize (std::vector< vgl_homg_point_2d< double > > const &p1, std::vector< vgl_homg_point_2d< double > > const &p2, std::vector< vgl_homg_line_2d< double > > const &l1, std::vector< vgl_homg_line_2d< double > > const &l2)
 optimize homography from matched points and lines - return h_matrix. More...
 

Protected Member Functions

virtual bool optimize_p (std::vector< vgl_homg_point_2d< double > > const &points1, std::vector< vgl_homg_point_2d< double > > const &points2, vgl_h_matrix_2d< double > &H)=0
 
virtual bool optimize_l (std::vector< vgl_homg_line_2d< double > > const &lines1, std::vector< vgl_homg_line_2d< double > > const &lines2, vgl_h_matrix_2d< double > &H)=0
 
virtual bool optimize_pl (std::vector< vgl_homg_point_2d< double > >const &points1, std::vector< vgl_homg_point_2d< double > >const &points2, std::vector< vgl_homg_line_2d< double > > const &lines1, std::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_
 

Detailed Description

Definition at line 74 of file vgl_h_matrix_2d_optimize.h.

Constructor & Destructor Documentation

◆ vgl_h_matrix_2d_optimize()

vgl_h_matrix_2d_optimize::vgl_h_matrix_2d_optimize ( vgl_h_matrix_2d< double > const &  initial_h)
inline

Definition at line 77 of file vgl_h_matrix_2d_optimize.h.

◆ ~vgl_h_matrix_2d_optimize()

virtual vgl_h_matrix_2d_optimize::~vgl_h_matrix_2d_optimize ( )
virtualdefault

Member Function Documentation

◆ minimum_number_of_correspondences()

virtual int vgl_h_matrix_2d_optimize::minimum_number_of_correspondences ( ) const
pure virtual

◆ optimize() [1/6]

bool vgl_h_matrix_2d_optimize::optimize ( std::vector< vgl_homg_point_2d< double > > const &  points1,
std::vector< vgl_homg_point_2d< double > > const &  points2,
vgl_h_matrix_2d< double > &  H 
)
inline

optimize homography from matched points.

Definition at line 109 of file vgl_h_matrix_2d_optimize.h.

◆ optimize() [2/6]

bool vgl_h_matrix_2d_optimize::optimize ( std::vector< vgl_homg_line_2d< double > > const &  lines1,
std::vector< vgl_homg_line_2d< double > > const &  lines2,
vgl_h_matrix_2d< double > &  H 
)
inline

optimize homography from matched lines.

Definition at line 117 of file vgl_h_matrix_2d_optimize.h.

◆ optimize() [3/6]

bool vgl_h_matrix_2d_optimize::optimize ( std::vector< vgl_homg_point_2d< double > > const &  points1,
std::vector< vgl_homg_point_2d< double > > const &  points2,
std::vector< vgl_homg_line_2d< double > > const &  lines1,
std::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 125 of file vgl_h_matrix_2d_optimize.h.

◆ optimize() [4/6]

vgl_h_matrix_2d<double> vgl_h_matrix_2d_optimize::optimize ( std::vector< vgl_homg_point_2d< double > > const &  p1,
std::vector< vgl_homg_point_2d< double > > const &  p2 
)
inline

optimize homography from matched points - return h_matrix.

Definition at line 136 of file vgl_h_matrix_2d_optimize.h.

◆ optimize() [5/6]

vgl_h_matrix_2d<double> vgl_h_matrix_2d_optimize::optimize ( std::vector< vgl_homg_line_2d< double > > const &  l1,
std::vector< vgl_homg_line_2d< double > > const &  l2 
)
inline

optimize homography from matched lines - return h_matrix.

Definition at line 142 of file vgl_h_matrix_2d_optimize.h.

◆ optimize() [6/6]

vgl_h_matrix_2d<double> vgl_h_matrix_2d_optimize::optimize ( std::vector< vgl_homg_point_2d< double > > const &  p1,
std::vector< vgl_homg_point_2d< double > > const &  p2,
std::vector< vgl_homg_line_2d< double > > const &  l1,
std::vector< vgl_homg_line_2d< double > > const &  l2 
)
inline

optimize homography from matched points and lines - return h_matrix.

Definition at line 148 of file vgl_h_matrix_2d_optimize.h.

◆ optimize_l()

virtual bool vgl_h_matrix_2d_optimize::optimize_l ( std::vector< vgl_homg_line_2d< double > > const &  lines1,
std::vector< vgl_homg_line_2d< double > > const &  lines2,
vgl_h_matrix_2d< double > &  H 
)
protectedpure virtual

◆ optimize_p()

virtual bool vgl_h_matrix_2d_optimize::optimize_p ( std::vector< vgl_homg_point_2d< double > > const &  points1,
std::vector< vgl_homg_point_2d< double > > const &  points2,
vgl_h_matrix_2d< double > &  H 
)
protectedpure virtual

◆ optimize_pl()

virtual bool vgl_h_matrix_2d_optimize::optimize_pl ( std::vector< vgl_homg_point_2d< double > >const &  points1,
std::vector< vgl_homg_point_2d< double > >const &  points2,
std::vector< vgl_homg_line_2d< double > > const &  lines1,
std::vector< vgl_homg_line_2d< double > > const &  lines2,
vgl_h_matrix_2d< double > &  H 
)
protectedpure virtual

◆ set_ftol()

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 95 of file vgl_h_matrix_2d_optimize.h.

◆ set_gtol()

void vgl_h_matrix_2d_optimize::set_gtol ( const double  gtol)
inline

Termination tolerance on the gradient of the projection error.

Definition at line 98 of file vgl_h_matrix_2d_optimize.h.

◆ set_htol()

void vgl_h_matrix_2d_optimize::set_htol ( const double  htol)
inline

Termination tolerance on change in the solution.

Definition at line 90 of file vgl_h_matrix_2d_optimize.h.

◆ set_trace()

void vgl_h_matrix_2d_optimize::set_trace ( bool  trace)
inline

Termination tolerance on the gradient of the projection error.

Definition at line 87 of file vgl_h_matrix_2d_optimize.h.

◆ set_verbose()

void vgl_h_matrix_2d_optimize::set_verbose ( bool  v)
inline

set this to true for verbose run-time information.

Definition at line 84 of file vgl_h_matrix_2d_optimize.h.

Member Data Documentation

◆ ftol_

double vgl_h_matrix_2d_optimize::ftol_
protected

Definition at line 157 of file vgl_h_matrix_2d_optimize.h.

◆ gtol_

double vgl_h_matrix_2d_optimize::gtol_
protected

Definition at line 158 of file vgl_h_matrix_2d_optimize.h.

◆ htol_

double vgl_h_matrix_2d_optimize::htol_
protected

Definition at line 159 of file vgl_h_matrix_2d_optimize.h.

◆ initial_h_

vgl_h_matrix_2d<double> vgl_h_matrix_2d_optimize::initial_h_
protected

Definition at line 161 of file vgl_h_matrix_2d_optimize.h.

◆ max_iter_

int vgl_h_matrix_2d_optimize::max_iter_
protected

Definition at line 160 of file vgl_h_matrix_2d_optimize.h.

◆ trace_

bool vgl_h_matrix_2d_optimize::trace_
protected

Definition at line 156 of file vgl_h_matrix_2d_optimize.h.

◆ verbose_

bool vgl_h_matrix_2d_optimize::verbose_
protected

Definition at line 155 of file vgl_h_matrix_2d_optimize.h.


The documentation for this class was generated from the following file: