Public Types | |
enum | UseGradient |
Public Member Functions | |
rgrl_homo2d_func (rgrl_set_of< rgrl_match_set_sptr > const &matches, int num_res, bool with_grad=true) | |
ctor. | |
void | set_centres (vnl_vector< double > const &fc, vnl_vector< double > const &tc) |
void | f (vnl_vector< double > const &x, vnl_vector< double > &fx) |
obj func value. | |
void | gradf (vnl_vector< double > const &x, vnl_matrix< double > &jacobian) |
Jacobian. | |
void | throw_failure () |
void | clear_failure () |
void | fdgradf (vnl_vector< double > const &x, vnl_matrix< double > &jacobian, double stepsize) |
void | ffdgradf (vnl_vector< double > const &x, vnl_matrix< double > &jacobian, double stepsize) |
virtual void | trace (int iteration, vnl_vector< double > const &x, vnl_vector< double > const &fx) |
double | rms (vnl_vector< double > const &x) |
unsigned int | get_number_of_unknowns () const |
unsigned int | get_number_of_residuals () const |
bool | has_gradient () const |
bool | vnl_discrete_diff_fwd (vnl_least_squares_function *lsf, double h, vnl_vector< double > const &x, vnl_matrix< double > &J) |
bool | vnl_discrete_diff_fwd (vnl_least_squares_function *lsf, vnl_vector< double > const &h, vnl_vector< double > const &x, vnl_matrix< double > &J) |
bool | vnl_discrete_diff_fwd (vnl_least_squares_function *lsf, vnl_vector< double > const &h, vnl_vector< double > const &x, vnl_vector< double > const &y, vnl_matrix< double > &J) |
bool | vnl_discrete_diff_sym (vnl_least_squares_function *lsf, double h, vnl_vector< double > const &x, vnl_matrix< double > &J) |
bool | vnl_discrete_diff_sym (vnl_least_squares_function *lsf, vnl_vector< double > const &h, vnl_vector< double > const &x, vnl_matrix< double > &J) |
Public Attributes | |
no_gradient | |
use_gradient | |
bool | failure |
Protected Types | |
typedef rgrl_match_set::const_from_iterator | FIter |
typedef FIter::to_iterator | TIter |
Protected Member Functions | |
void | init (unsigned int number_of_unknowns, unsigned int number_of_residuals) |
Protected Attributes | |
rgrl_set_of < rgrl_match_set_sptr > const * | matches_ptr_ |
vnl_double_2 | from_centre_ |
vnl_double_2 | to_centre_ |
unsigned int | p_ |
unsigned int | n_ |
bool | use_gradient_ |
Definition at line 63 of file rgrl_est_homo2d_lm.cxx.
typedef rgrl_match_set::const_from_iterator rgrl_homo2d_func::FIter [protected] |
Definition at line 89 of file rgrl_est_homo2d_lm.cxx.
typedef FIter::to_iterator rgrl_homo2d_func::TIter [protected] |
Definition at line 90 of file rgrl_est_homo2d_lm.cxx.
rgrl_homo2d_func::rgrl_homo2d_func | ( | rgrl_set_of< rgrl_match_set_sptr > const & | matches, |
int | num_res, | ||
bool | with_grad = true |
||
) | [inline] |
ctor.
Definition at line 68 of file rgrl_est_homo2d_lm.cxx.
void rgrl_homo2d_func::f | ( | vnl_vector< double > const & | x, |
vnl_vector< double > & | fx | ||
) | [virtual] |
obj func value.
Implements vnl_least_squares_function.
Definition at line 98 of file rgrl_est_homo2d_lm.cxx.
void rgrl_homo2d_func::gradf | ( | vnl_vector< double > const & | x, |
vnl_matrix< double > & | jacobian | ||
) | [virtual] |
Jacobian.
Reimplemented from vnl_least_squares_function.
Definition at line 133 of file rgrl_est_homo2d_lm.cxx.
void rgrl_homo2d_func::set_centres | ( | vnl_vector< double > const & | fc, |
vnl_vector< double > const & | tc | ||
) | [inline] |
Definition at line 75 of file rgrl_est_homo2d_lm.cxx.
vnl_double_2 rgrl_homo2d_func::from_centre_ [protected] |
Definition at line 93 of file rgrl_est_homo2d_lm.cxx.
rgrl_set_of<rgrl_match_set_sptr> const* rgrl_homo2d_func::matches_ptr_ [protected] |
Definition at line 92 of file rgrl_est_homo2d_lm.cxx.
vnl_double_2 rgrl_homo2d_func::to_centre_ [protected] |
Definition at line 93 of file rgrl_est_homo2d_lm.cxx.