Public Member Functions | Public Attributes | Private Attributes
vpgl_fm_compute_ransac Class Reference

This is the main class for computing the fundamental matrix from lists of corresponding points. More...

#include <vpgl_fm_compute_ransac.h>

List of all members.

Public Member Functions

 vpgl_fm_compute_ransac ()
bool compute (const vcl_vector< vgl_point_2d< double > > &pr, const vcl_vector< vgl_point_2d< double > > &pl, vpgl_fundamental_matrix< double > &fm)
 Compute from two sets of corresponding points.
void set_max_outlier_frac (const double max_frac)
 The upper bound on the fraction of outlier correspondences.
void set_desired_prob_good (const double prob_good)
 The probability that a correct correspondence tuple is found.
void set_max_pops (const int max_pops)
 the max number of populations in the sample (typically one).
void set_generate_all (const bool gen_all)
 Force the generation of all sample 8 tuples.
void set_outlier_threshold (const double thresh)
 Set the threshold on epipolar distance that determines that a correspondence is an outlier.
void set_trace_level (int trace_level)
 Set the trace level for debugging.

Public Attributes

vcl_vector< bool > outliers
 After "compute" indices will have true set for correspondences that are outliers.
vcl_vector< double > residuals
 After "compute" this will have point distances from epipolar lines.

Private Attributes

double outlier_thresh_
double max_outlier_frac_
double desired_prob_good_
int max_pops_
bool gen_all_
int trace_level_

Detailed Description

This is the main class for computing the fundamental matrix from lists of corresponding points.

Definition at line 25 of file vpgl_fm_compute_ransac.h.


Constructor & Destructor Documentation

vpgl_fm_compute_ransac::vpgl_fm_compute_ransac ( ) [inline]

Definition at line 28 of file vpgl_fm_compute_ransac.h.


Member Function Documentation

bool vpgl_fm_compute_ransac::compute ( const vcl_vector< vgl_point_2d< double > > &  pr,
const vcl_vector< vgl_point_2d< double > > &  pl,
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 21 of file vpgl_fm_compute_ransac.cxx.

void vpgl_fm_compute_ransac::set_desired_prob_good ( const double  prob_good) [inline]

The probability that a correct correspondence tuple is found.

Definition at line 42 of file vpgl_fm_compute_ransac.h.

void vpgl_fm_compute_ransac::set_generate_all ( const bool  gen_all) [inline]

Force the generation of all sample 8 tuples.

Definition at line 47 of file vpgl_fm_compute_ransac.h.

void vpgl_fm_compute_ransac::set_max_outlier_frac ( const double  max_frac) [inline]

The upper bound on the fraction of outlier correspondences.

Definition at line 40 of file vpgl_fm_compute_ransac.h.

void vpgl_fm_compute_ransac::set_max_pops ( const int  max_pops) [inline]

the max number of populations in the sample (typically one).

Definition at line 44 of file vpgl_fm_compute_ransac.h.

void vpgl_fm_compute_ransac::set_outlier_threshold ( const double  thresh) [inline]

Set the threshold on epipolar distance that determines that a correspondence is an outlier.

Definition at line 50 of file vpgl_fm_compute_ransac.h.

void vpgl_fm_compute_ransac::set_trace_level ( int  trace_level) [inline]

Set the trace level for debugging.

Definition at line 53 of file vpgl_fm_compute_ransac.h.


Member Data Documentation

Definition at line 64 of file vpgl_fm_compute_ransac.h.

Definition at line 66 of file vpgl_fm_compute_ransac.h.

Definition at line 63 of file vpgl_fm_compute_ransac.h.

Definition at line 65 of file vpgl_fm_compute_ransac.h.

Definition at line 62 of file vpgl_fm_compute_ransac.h.

After "compute" indices will have true set for correspondences that are outliers.

Definition at line 56 of file vpgl_fm_compute_ransac.h.

After "compute" this will have point distances from epipolar lines.

Definition at line 59 of file vpgl_fm_compute_ransac.h.

Definition at line 67 of file vpgl_fm_compute_ransac.h.


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