The image offsets of rational cameras typically must be adjusted to compensate for errors in geographic alignment. More...
#include <vpgl_rational_adjust_onept.h>

Public Types | |
| enum | UseGradient |
Public Member Functions | |
| vpgl_z_search_lsqr (vcl_vector< vpgl_rational_camera< double > > const &cams, vcl_vector< vgl_point_2d< double > > const &image_pts, vgl_point_3d< double > const &initial_pt) | |
| Constructor. | |
| virtual | ~vpgl_z_search_lsqr () |
| Destructor. | |
| virtual void | f (vnl_vector< double > const &elevation, vnl_vector< double > &projection_error) |
| The main function. | |
| double | xm () const |
| double | ym () const |
| void | throw_failure () |
| void | clear_failure () |
| virtual void | gradf (vnl_vector< double > const &x, vnl_matrix< double > &jacobian) |
| 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 Member Functions | |
| vpgl_z_search_lsqr () | |
| void | init (unsigned int number_of_unknowns, unsigned int number_of_residuals) |
Protected Attributes | |
| vgl_point_3d< double > | initial_pt_ |
| vcl_vector < vpgl_rational_camera< double > > | cameras_ |
| vcl_vector< vgl_point_2d < double > > | image_pts_ |
| double | xm_ |
| double | ym_ |
| unsigned int | p_ |
| unsigned int | n_ |
| bool | use_gradient_ |
The image offsets of rational cameras typically must be adjusted to compensate for errors in geographic alignment.
This algorithm finds a set of minimum translations that registers the input set of images. After registration, the images have geographically corresponding rational cameras. That is, a visible 3-d point will project into its corresponding image location in all the images.
Definition at line 27 of file vpgl_rational_adjust_onept.h.
| vpgl_z_search_lsqr::vpgl_z_search_lsqr | ( | vcl_vector< vpgl_rational_camera< double > > const & | cams, |
| vcl_vector< vgl_point_2d< double > > const & | image_pts, | ||
| vgl_point_3d< double > const & | initial_pt | ||
| ) |
Constructor.
Definition at line 48 of file vpgl_rational_adjust_onept.cxx.
| virtual vpgl_z_search_lsqr::~vpgl_z_search_lsqr | ( | ) | [inline, virtual] |
Destructor.
Definition at line 35 of file vpgl_rational_adjust_onept.h.
| vpgl_z_search_lsqr::vpgl_z_search_lsqr | ( | ) | [protected] |
| void vpgl_z_search_lsqr::f | ( | vnl_vector< double > const & | elevation, |
| vnl_vector< double > & | projection_error | ||
| ) | [virtual] |
The main function.
Given the parameter vector x, compute the vector of residuals fx. fx has been sized appropriately before the call.
Implements vnl_least_squares_function.
Definition at line 59 of file vpgl_rational_adjust_onept.cxx.
| double vpgl_z_search_lsqr::xm | ( | ) | const [inline] |
Definition at line 42 of file vpgl_rational_adjust_onept.h.
| double vpgl_z_search_lsqr::ym | ( | ) | const [inline] |
Definition at line 43 of file vpgl_rational_adjust_onept.h.
vcl_vector<vpgl_rational_camera<double> > vpgl_z_search_lsqr::cameras_ [protected] |
Definition at line 47 of file vpgl_rational_adjust_onept.h.
vcl_vector<vgl_point_2d<double> > vpgl_z_search_lsqr::image_pts_ [protected] |
Definition at line 48 of file vpgl_rational_adjust_onept.h.
vgl_point_3d<double> vpgl_z_search_lsqr::initial_pt_ [protected] |
Definition at line 46 of file vpgl_rational_adjust_onept.h.
double vpgl_z_search_lsqr::xm_ [protected] |
Definition at line 49 of file vpgl_rational_adjust_onept.h.
double vpgl_z_search_lsqr::ym_ [protected] |
Definition at line 49 of file vpgl_rational_adjust_onept.h.
1.7.5.1