This is the main class for computing the fundamental matrix from lists of corresponding points. More...
#include <vpgl_fm_compute_ransac.h>
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_ |
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.
| vpgl_fm_compute_ransac::vpgl_fm_compute_ransac | ( | ) | [inline] |
Definition at line 28 of file vpgl_fm_compute_ransac.h.
| 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.
double vpgl_fm_compute_ransac::desired_prob_good_ [private] |
Definition at line 64 of file vpgl_fm_compute_ransac.h.
bool vpgl_fm_compute_ransac::gen_all_ [private] |
Definition at line 66 of file vpgl_fm_compute_ransac.h.
double vpgl_fm_compute_ransac::max_outlier_frac_ [private] |
Definition at line 63 of file vpgl_fm_compute_ransac.h.
int vpgl_fm_compute_ransac::max_pops_ [private] |
Definition at line 65 of file vpgl_fm_compute_ransac.h.
double vpgl_fm_compute_ransac::outlier_thresh_ [private] |
Definition at line 62 of file vpgl_fm_compute_ransac.h.
| vcl_vector<bool> vpgl_fm_compute_ransac::outliers |
After "compute" indices will have true set for correspondences that are outliers.
Definition at line 56 of file vpgl_fm_compute_ransac.h.
| vcl_vector<double> vpgl_fm_compute_ransac::residuals |
After "compute" this will have point distances from epipolar lines.
Definition at line 59 of file vpgl_fm_compute_ransac.h.
int vpgl_fm_compute_ransac::trace_level_ [private] |
Definition at line 67 of file vpgl_fm_compute_ransac.h.
1.7.5.1