This is a helper class for vpgl_fm_compute_ransac using rrel. More...
#include <vpgl_fm_compute_ransac.h>
Public Member Functions | |
| rrel_fm_problem (const vcl_vector< vgl_point_2d< double > > &pr, const vcl_vector< vgl_point_2d< double > > &pl) | |
| Construct the problem object with two sets of corresponding points. | |
| virtual | ~rrel_fm_problem () |
| unsigned int | num_samples () const |
| unsigned int | residual_dof () const |
| bool | fit_from_minimal_set (const vcl_vector< int > &point_indices, vnl_vector< double > ¶ms) const |
| void | compute_residuals (const vnl_vector< double > ¶ms, vcl_vector< double > &residuals) const |
| virtual void | fm_to_params (const vpgl_fundamental_matrix< double > &fm, vnl_vector< double > &p) const |
| virtual void | params_to_fm (const vnl_vector< double > &p, vpgl_fundamental_matrix< double > &fm) const |
| bool | weighted_least_squares_fit (vnl_vector< double > ¶ms, vnl_matrix< double > &norm_covar, const vcl_vector< double > *weights=0) const |
| Weighted least squares parameter estimate. | |
Public Attributes | |
| bool | verbose |
Protected Attributes | |
| vcl_vector< vgl_point_2d < double > > | pr_ |
| vcl_vector< vgl_point_2d < double > > | pl_ |
This is a helper class for vpgl_fm_compute_ransac using rrel.
Definition at line 72 of file vpgl_fm_compute_ransac.h.
| rrel_fm_problem::rrel_fm_problem | ( | const vcl_vector< vgl_point_2d< double > > & | pr, |
| const vcl_vector< vgl_point_2d< double > > & | pl | ||
| ) |
Construct the problem object with two sets of corresponding points.
Points pr correspond to the RHS of the fundamental matrix, while the points pl correspond to the LHS.
Definition at line 77 of file vpgl_fm_compute_ransac.cxx.
| virtual rrel_fm_problem::~rrel_fm_problem | ( | ) | [inline, virtual] |
Definition at line 81 of file vpgl_fm_compute_ransac.h.
| void rrel_fm_problem::compute_residuals | ( | const vnl_vector< double > & | params, |
| vcl_vector< double > & | residuals | ||
| ) | const |
Definition at line 122 of file vpgl_fm_compute_ransac.cxx.
| bool rrel_fm_problem::fit_from_minimal_set | ( | const vcl_vector< int > & | point_indices, |
| vnl_vector< double > & | params | ||
| ) | const |
Definition at line 95 of file vpgl_fm_compute_ransac.cxx.
| void rrel_fm_problem::fm_to_params | ( | const vpgl_fundamental_matrix< double > & | fm, |
| vnl_vector< double > & | p | ||
| ) | const [virtual] |
Definition at line 152 of file vpgl_fm_compute_ransac.cxx.
| unsigned int rrel_fm_problem::num_samples | ( | ) | const [inline] |
Definition at line 84 of file vpgl_fm_compute_ransac.h.
| void rrel_fm_problem::params_to_fm | ( | const vnl_vector< double > & | p, |
| vpgl_fundamental_matrix< double > & | fm | ||
| ) | const [virtual] |
Definition at line 166 of file vpgl_fm_compute_ransac.cxx.
| unsigned int rrel_fm_problem::residual_dof | ( | ) | const [inline] |
Definition at line 87 of file vpgl_fm_compute_ransac.h.
| bool rrel_fm_problem::weighted_least_squares_fit | ( | vnl_vector< double > & | params, |
| vnl_matrix< double > & | norm_covar, | ||
| const vcl_vector< double > * | weights = 0 |
||
| ) | const |
Weighted least squares parameter estimate.
The normalized covariance is not yet filled in.
Definition at line 180 of file vpgl_fm_compute_ransac.cxx.
vcl_vector< vgl_point_2d<double> > rrel_fm_problem::pl_ [protected] |
Definition at line 116 of file vpgl_fm_compute_ransac.h.
vcl_vector< vgl_point_2d<double> > rrel_fm_problem::pr_ [protected] |
Definition at line 115 of file vpgl_fm_compute_ransac.h.
Definition at line 112 of file vpgl_fm_compute_ransac.h.
1.7.5.1