Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vgl_h_matrix_3d_compute_linear Class Reference

#include <vgl_h_matrix_3d_compute_linear.h>

Inheritance diagram for vgl_h_matrix_3d_compute_linear:
Inheritance graph
[legend]

Public Member Functions

 vgl_h_matrix_3d_compute_linear ()=default
 
int minimum_number_of_correspondences () const override
 
void verbose (bool v)
 
bool compute (std::vector< vgl_homg_point_3d< double > > const &points1, std::vector< vgl_homg_point_3d< double > > const &points2, vgl_h_matrix_3d< double > &H)
 homography from matched points. More...
 
vgl_h_matrix_3d< double > compute (std::vector< vgl_homg_point_3d< double > > const &p1, std::vector< vgl_homg_point_3d< double > > const &p2)
 homography from matched points - return h_matrix. More...
 

Protected Member Functions

bool compute_p (std::vector< vgl_homg_point_3d< double > > const &points1, std::vector< vgl_homg_point_3d< double > > const &points2, vgl_h_matrix_3d< double > &H) override
 compute from matched points. More...
 
bool solve_linear_problem (std::vector< vgl_homg_point_3d< double > > const &p1, std::vector< vgl_homg_point_3d< double > > const &p2, vgl_h_matrix_3d< double > &H)
 Assumes all corresponding points have equal weight. More...
 

Protected Attributes

bool verbose_
 

Detailed Description

Definition at line 29 of file vgl_h_matrix_3d_compute_linear.h.

Constructor & Destructor Documentation

◆ vgl_h_matrix_3d_compute_linear()

vgl_h_matrix_3d_compute_linear::vgl_h_matrix_3d_compute_linear ( )
default

Member Function Documentation

◆ compute() [1/2]

bool vgl_h_matrix_3d_compute::compute ( std::vector< vgl_homg_point_3d< double > > const &  points1,
std::vector< vgl_homg_point_3d< double > > const &  points2,
vgl_h_matrix_3d< double > &  H 
)
inlineinherited

homography from matched points.

Definition at line 41 of file vgl_h_matrix_3d_compute.h.

◆ compute() [2/2]

vgl_h_matrix_3d<double> vgl_h_matrix_3d_compute::compute ( std::vector< vgl_homg_point_3d< double > > const &  p1,
std::vector< vgl_homg_point_3d< double > > const &  p2 
)
inlineinherited

homography from matched points - return h_matrix.

Definition at line 50 of file vgl_h_matrix_3d_compute.h.

◆ compute_p()

bool vgl_h_matrix_3d_compute_linear::compute_p ( std::vector< vgl_homg_point_3d< double > > const &  points1,
std::vector< vgl_homg_point_3d< double > > const &  points2,
vgl_h_matrix_3d< double > &  H 
)
overrideprotectedvirtual

compute from matched points.

Implements vgl_h_matrix_3d_compute.

Definition at line 90 of file vgl_h_matrix_3d_compute_linear.cxx.

◆ minimum_number_of_correspondences()

int vgl_h_matrix_3d_compute_linear::minimum_number_of_correspondences ( ) const
inlineoverridevirtual

Implements vgl_h_matrix_3d_compute.

Definition at line 45 of file vgl_h_matrix_3d_compute_linear.h.

◆ solve_linear_problem()

bool vgl_h_matrix_3d_compute_linear::solve_linear_problem ( std::vector< vgl_homg_point_3d< double > > const &  p1,
std::vector< vgl_homg_point_3d< double > > const &  p2,
vgl_h_matrix_3d< double > &  H 
)
protected

Assumes all corresponding points have equal weight.

Compute a 3D-to-3D homography using linear least squares.

Returns false if the calculation fails or there are fewer than five point matches in the list. The algorithm finds the nullvector of the $6 n \times 16$ design matrix:Assumes all corresponding points have equal weight.

Definition at line 26 of file vgl_h_matrix_3d_compute_linear.cxx.

◆ verbose()

void vgl_h_matrix_3d_compute::verbose ( bool  v)
inlineinherited

Definition at line 32 of file vgl_h_matrix_3d_compute.h.

Member Data Documentation

◆ verbose_

bool vgl_h_matrix_3d_compute::verbose_
protectedinherited

Definition at line 55 of file vgl_h_matrix_3d_compute.h.


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