This is a helper class for vpgl_fm_compute_ransac using rrel. More...
#include <vpgl_fm_compute_reg_ransac.h>
Public Member Functions | |
| rrel_fm_reg_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_reg_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_reg_fundamental_matrix< double > &fm, vnl_vector< double > &p) const |
| virtual void | params_to_fm (const vnl_vector< double > &p, vpgl_reg_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 63 of file vpgl_fm_compute_reg_ransac.h.
| rrel_fm_reg_problem::rrel_fm_reg_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 85 of file vpgl_fm_compute_reg_ransac.cxx.
| virtual rrel_fm_reg_problem::~rrel_fm_reg_problem | ( | ) | [inline, virtual] |
Definition at line 72 of file vpgl_fm_compute_reg_ransac.h.
| void rrel_fm_reg_problem::compute_residuals | ( | const vnl_vector< double > & | params, |
| vcl_vector< double > & | residuals | ||
| ) | const |
Definition at line 122 of file vpgl_fm_compute_reg_ransac.cxx.
| bool rrel_fm_reg_problem::fit_from_minimal_set | ( | const vcl_vector< int > & | point_indices, |
| vnl_vector< double > & | params | ||
| ) | const |
Definition at line 103 of file vpgl_fm_compute_reg_ransac.cxx.
| void rrel_fm_reg_problem::fm_to_params | ( | const vpgl_reg_fundamental_matrix< double > & | fm, |
| vnl_vector< double > & | p | ||
| ) | const [virtual] |
Definition at line 151 of file vpgl_fm_compute_reg_ransac.cxx.
| unsigned int rrel_fm_reg_problem::num_samples | ( | ) | const [inline] |
Definition at line 75 of file vpgl_fm_compute_reg_ransac.h.
| void rrel_fm_reg_problem::params_to_fm | ( | const vnl_vector< double > & | p, |
| vpgl_reg_fundamental_matrix< double > & | fm | ||
| ) | const [virtual] |
Definition at line 164 of file vpgl_fm_compute_reg_ransac.cxx.
| unsigned int rrel_fm_reg_problem::residual_dof | ( | ) | const [inline] |
Definition at line 78 of file vpgl_fm_compute_reg_ransac.h.
| bool rrel_fm_reg_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 174 of file vpgl_fm_compute_reg_ransac.cxx.
vcl_vector< vgl_point_2d<double> > rrel_fm_reg_problem::pl_ [protected] |
Definition at line 107 of file vpgl_fm_compute_reg_ransac.h.
vcl_vector< vgl_point_2d<double> > rrel_fm_reg_problem::pr_ [protected] |
Definition at line 106 of file vpgl_fm_compute_reg_ransac.h.
Definition at line 103 of file vpgl_fm_compute_reg_ransac.h.
1.7.5.1