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

#include <vgl_h_matrix_3d_compute_affine.h>

Inheritance diagram for vgl_h_matrix_3d_compute_affine:
Inheritance graph
[legend]

Public Member Functions

 vgl_h_matrix_3d_compute_affine ()=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, vnl_matrix< double > &M)
 Assumes all corresponding points have equal weight. More...
 

Protected Attributes

bool verbose_
 

Detailed Description

Definition at line 18 of file vgl_h_matrix_3d_compute_affine.h.

Constructor & Destructor Documentation

◆ vgl_h_matrix_3d_compute_affine()

vgl_h_matrix_3d_compute_affine::vgl_h_matrix_3d_compute_affine ( )
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_affine::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 76 of file vgl_h_matrix_3d_compute_affine.cxx.

◆ minimum_number_of_correspondences()

int vgl_h_matrix_3d_compute_affine::minimum_number_of_correspondences ( ) const
inlineoverridevirtual

Implements vgl_h_matrix_3d_compute.

Definition at line 35 of file vgl_h_matrix_3d_compute_affine.h.

◆ solve_linear_problem()

bool vgl_h_matrix_3d_compute_affine::solve_linear_problem ( std::vector< vgl_homg_point_3d< double > > const &  p1,
std::vector< vgl_homg_point_3d< double > > const &  p2,
vnl_matrix< double > &  M 
)
protected

Assumes all corresponding points have equal weight.

Compute a 3D-to-3D affine transformation without translation 3 x 3 matrix.

Note: requires all finite points. The algorithm finds the nullvector of the $3 n \times 9$ design matrix.Assumes all corresponding points have equal weight.

Definition at line 26 of file vgl_h_matrix_3d_compute_affine.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: