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

#include <vpgl_fm_compute_7_point.h>

Public Member Functions

 vpgl_fm_compute_7_point (bool precondition=true)
 If precondition = true, points are conditioned prior to computation. More...
 
bool compute (const std::vector< vgl_homg_point_2d< double > > &pr, const std::vector< vgl_homg_point_2d< double > > &pl, std::vector< vpgl_fundamental_matrix< double > * > &fm)
 Compute from two sets of corresponding points. More...
 

Static Protected Member Functions

static std::vector< double > get_coeffs (vnl_double_3x3 const &F1, vnl_double_3x3 const &F2)
 
static std::vector< double > solve_quadratic (std::vector< double > v)
 
static std::vector< double > solve_cubic (std::vector< double > v)
 

Protected Attributes

bool precondition_
 

Detailed Description

Definition at line 16 of file vpgl_fm_compute_7_point.h.

Constructor & Destructor Documentation

◆ vpgl_fm_compute_7_point()

vpgl_fm_compute_7_point::vpgl_fm_compute_7_point ( bool  precondition = true)
inline

If precondition = true, points are conditioned prior to computation.

Definition at line 20 of file vpgl_fm_compute_7_point.h.

Member Function Documentation

◆ compute()

bool vpgl_fm_compute_7_point::compute ( const std::vector< vgl_homg_point_2d< double > > &  pr,
const std::vector< vgl_homg_point_2d< double > > &  pl,
std::vector< vpgl_fundamental_matrix< double > * > &  fm 
)

Compute from two sets of corresponding points.

Put the resulting matrix into fm, return true if successful. Points pr are associated with the RHS of the fundamental matrix while the points pl are associated with the LHS.

Definition at line 19 of file vpgl_fm_compute_7_point.cxx.

◆ get_coeffs()

std::vector< double > vpgl_fm_compute_7_point::get_coeffs ( vnl_double_3x3 const &  F1,
vnl_double_3x3 const &  F2 
)
staticprotected

Definition at line 96 of file vpgl_fm_compute_7_point.cxx.

◆ solve_cubic()

std::vector< double > vpgl_fm_compute_7_point::solve_cubic ( std::vector< double >  v)
staticprotected

Definition at line 147 of file vpgl_fm_compute_7_point.cxx.

◆ solve_quadratic()

std::vector< double > vpgl_fm_compute_7_point::solve_quadratic ( std::vector< double >  v)
staticprotected

Definition at line 126 of file vpgl_fm_compute_7_point.cxx.

Member Data Documentation

◆ precondition_

bool vpgl_fm_compute_7_point::precondition_
protected

Definition at line 36 of file vpgl_fm_compute_7_point.h.


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