This is a helper class for vpgl_fm_compute_ransac using rrel. More...
#include <vpgl_fm_compute_affine_ransac.h>
Public Member Functions | |
| rrel_fm_affine_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_affine_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_affine_fundamental_matrix< double > &fm, vnl_vector< double > &p) const |
| virtual void | params_to_fm (const vnl_vector< double > &p, vpgl_affine_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_affine_ransac.h.
| rrel_fm_affine_problem::rrel_fm_affine_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_affine_ransac.cxx.
| virtual rrel_fm_affine_problem::~rrel_fm_affine_problem | ( | ) | [inline, virtual] |
Definition at line 72 of file vpgl_fm_compute_affine_ransac.h.
| void rrel_fm_affine_problem::compute_residuals | ( | const vnl_vector< double > & | params, |
| vcl_vector< double > & | residuals | ||
| ) | const |
Definition at line 125 of file vpgl_fm_compute_affine_ransac.cxx.
| bool rrel_fm_affine_problem::fit_from_minimal_set | ( | const vcl_vector< int > & | point_indices, |
| vnl_vector< double > & | params | ||
| ) | const |
Definition at line 102 of file vpgl_fm_compute_affine_ransac.cxx.
| void rrel_fm_affine_problem::fm_to_params | ( | const vpgl_affine_fundamental_matrix< double > & | fm, |
| vnl_vector< double > & | p | ||
| ) | const [virtual] |
Definition at line 157 of file vpgl_fm_compute_affine_ransac.cxx.
| unsigned int rrel_fm_affine_problem::num_samples | ( | ) | const [inline] |
Definition at line 75 of file vpgl_fm_compute_affine_ransac.h.
| void rrel_fm_affine_problem::params_to_fm | ( | const vnl_vector< double > & | p, |
| vpgl_affine_fundamental_matrix< double > & | fm | ||
| ) | const [virtual] |
Definition at line 175 of file vpgl_fm_compute_affine_ransac.cxx.
| unsigned int rrel_fm_affine_problem::residual_dof | ( | ) | const [inline] |
Definition at line 78 of file vpgl_fm_compute_affine_ransac.h.
| bool rrel_fm_affine_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 185 of file vpgl_fm_compute_affine_ransac.cxx.
vcl_vector< vgl_point_2d<double> > rrel_fm_affine_problem::pl_ [protected] |
Definition at line 107 of file vpgl_fm_compute_affine_ransac.h.
vcl_vector< vgl_point_2d<double> > rrel_fm_affine_problem::pr_ [protected] |
Definition at line 106 of file vpgl_fm_compute_affine_ransac.h.
Definition at line 103 of file vpgl_fm_compute_affine_ransac.h.
1.7.5.1