Public Member Functions | Protected Attributes
FMatrixComputeMLESAC Class Reference

#include <FMatrixComputeMLESAC.h>

Inheritance diagram for FMatrixComputeMLESAC:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 FMatrixComputeMLESAC (bool rank2_truncate, double std)
 Initialize FMatrixComputeRobust object.
virtual ~FMatrixComputeMLESAC ()
virtual double calculate_term (vcl_vector< double > &residuals, vcl_vector< bool > &inlier_list, int &count)
virtual double calculate_residual (HomgPoint2D &one, HomgPoint2D &two, FMatrix *F)
virtual double calculate_residual (vgl_homg_point_2d< double > &one, vgl_homg_point_2d< double > &two, FMatrix *F)
bool compute (PairMatchSetCorner &matches, FMatrix *F)
 Compute a fundamental matrix for a set of point matches.
bool compute (vcl_vector< HomgPoint2D > &p1, vcl_vector< HomgPoint2D > &p2, FMatrix *F)
bool compute (vcl_vector< vgl_homg_point_2d< double > > &p1, vcl_vector< vgl_homg_point_2d< double > > &p2, FMatrix &F)
FMatrix compute (PairMatchSetCorner &p)
 Compute fundamental matrix using given matchlist and return an FMatrix object.
FMatrix compute (vcl_vector< HomgPoint2D > &p1, vcl_vector< HomgPoint2D > &p2)
FMatrix compute (vcl_vector< vgl_homg_point_2d< double > > &p1, vcl_vector< vgl_homg_point_2d< double > > &p2)
vcl_vector< int > get_basis () const
HomgPoint2D get_epipole1 () const
HomgPoint2D get_epipole2 () const
vcl_vector< double > get_residuals () const
vcl_vector< bool > get_inliers () const
vcl_vector< double > calculate_residuals (vcl_vector< HomgPoint2D > &one, vcl_vector< HomgPoint2D > &two, FMatrix *F)
 Calculate all the residuals for a given relation.
vcl_vector< double > calculate_residuals (vcl_vector< vgl_homg_point_2d< double > > &one, vcl_vector< vgl_homg_point_2d< double > > &two, FMatrix *F)
 Calculate all the residuals for a given relation.
double stdev (vcl_vector< double > &residuals)
 Find the standard deviation of the residuals.

Protected Attributes

bool rank2_truncate_
double inthresh_
double std_

Detailed Description

Definition at line 29 of file FMatrixComputeMLESAC.h.


Constructor & Destructor Documentation

FMatrixComputeMLESAC::FMatrixComputeMLESAC ( bool  rank2_truncate,
double  std 
)

Initialize FMatrixComputeRobust object.

If rank2_truncate = false, the resulting solution is not forced to rank 2 using the vnl_svd<double>.

Definition at line 9 of file FMatrixComputeMLESAC.cxx.

FMatrixComputeMLESAC::~FMatrixComputeMLESAC ( ) [virtual]

Definition at line 16 of file FMatrixComputeMLESAC.cxx.


Member Function Documentation

double FMatrixComputeMLESAC::calculate_residual ( HomgPoint2D one,
HomgPoint2D two,
FMatrix F 
) [virtual]
Todo:
not yet implemented

Reimplemented from FMatrixComputeRobust.

Definition at line 49 of file FMatrixComputeMLESAC.cxx.

double FMatrixComputeMLESAC::calculate_residual ( vgl_homg_point_2d< double > &  one,
vgl_homg_point_2d< double > &  two,
FMatrix F 
) [virtual]
Todo:
not yet implemented

Reimplemented from FMatrixComputeRobust.

Definition at line 37 of file FMatrixComputeMLESAC.cxx.

vcl_vector< double > FMatrixComputeRobust::calculate_residuals ( vcl_vector< HomgPoint2D > &  one,
vcl_vector< HomgPoint2D > &  two,
FMatrix F 
) [inherited]

Calculate all the residuals for a given relation.

Definition at line 158 of file FMatrixComputeRobust.cxx.

vcl_vector< double > FMatrixComputeRobust::calculate_residuals ( vcl_vector< vgl_homg_point_2d< double > > &  one,
vcl_vector< vgl_homg_point_2d< double > > &  two,
FMatrix F 
) [inherited]

Calculate all the residuals for a given relation.

Definition at line 145 of file FMatrixComputeRobust.cxx.

double FMatrixComputeMLESAC::calculate_term ( vcl_vector< double > &  residuals,
vcl_vector< bool > &  inlier_list,
int &  count 
) [virtual]
Todo:
not yet implemented

Reimplemented from FMatrixComputeRobust.

Definition at line 19 of file FMatrixComputeMLESAC.cxx.

bool FMatrixComputeRobust::compute ( PairMatchSetCorner matches,
FMatrix F 
) [virtual, inherited]

Compute a fundamental matrix for a set of point matches.

Compute a robust fundamental matrix.

This is the implemented method, other computes wrap this.

Returns:
false if the calculation fails.

Reimplemented from FMatrixCompute.

Definition at line 23 of file FMatrixComputeRobust.cxx.

bool FMatrixComputeRobust::compute ( vcl_vector< HomgPoint2D > &  p1,
vcl_vector< HomgPoint2D > &  p2,
FMatrix F 
) [inline, virtual, inherited]

Reimplemented from FMatrixCompute.

Definition at line 36 of file FMatrixComputeRobust.h.

bool FMatrixComputeRobust::compute ( vcl_vector< vgl_homg_point_2d< double > > &  p1,
vcl_vector< vgl_homg_point_2d< double > > &  p2,
FMatrix F 
) [inline, virtual, inherited]

Reimplemented from FMatrixCompute.

Definition at line 38 of file FMatrixComputeRobust.h.

FMatrix FMatrixComputeRobust::compute ( PairMatchSetCorner matched_points) [inline, inherited]

Compute fundamental matrix using given matchlist and return an FMatrix object.

This is implemented in terms of compute(MatchList*, FMatrix*)

Reimplemented from FMatrixCompute.

Definition at line 43 of file FMatrixComputeRobust.h.

FMatrix FMatrixComputeRobust::compute ( vcl_vector< HomgPoint2D > &  p1,
vcl_vector< HomgPoint2D > &  p2 
) [inline, inherited]

Reimplemented from FMatrixCompute.

Definition at line 44 of file FMatrixComputeRobust.h.

FMatrix FMatrixComputeRobust::compute ( vcl_vector< vgl_homg_point_2d< double > > &  p1,
vcl_vector< vgl_homg_point_2d< double > > &  p2 
) [inline, inherited]

Reimplemented from FMatrixCompute.

Definition at line 46 of file FMatrixComputeRobust.h.

vcl_vector<int> FMatrixComputeRobust::get_basis ( ) const [inline, inherited]

Definition at line 52 of file FMatrixComputeRobust.h.

HomgPoint2D FMatrixComputeRobust::get_epipole1 ( ) const [inline, inherited]

Definition at line 53 of file FMatrixComputeRobust.h.

HomgPoint2D FMatrixComputeRobust::get_epipole2 ( ) const [inline, inherited]

Definition at line 54 of file FMatrixComputeRobust.h.

vcl_vector<bool> FMatrixComputeRobust::get_inliers ( ) const [inline, inherited]

Definition at line 56 of file FMatrixComputeRobust.h.

vcl_vector<double> FMatrixComputeRobust::get_residuals ( ) const [inline, inherited]

Definition at line 55 of file FMatrixComputeRobust.h.

double FMatrixComputeRobust::stdev ( vcl_vector< double > &  residuals) [inherited]

Find the standard deviation of the residuals.

Definition at line 171 of file FMatrixComputeRobust.cxx.


Member Data Documentation

double FMatrixComputeRobust::inthresh_ [protected, inherited]

Definition at line 70 of file FMatrixComputeRobust.h.

bool FMatrixComputeRobust::rank2_truncate_ [protected, inherited]

Definition at line 69 of file FMatrixComputeRobust.h.

double FMatrixComputeRobust::std_ [protected, inherited]

Definition at line 71 of file FMatrixComputeRobust.h.


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