00001 #ifndef vgl_h_matrix_1d_compute_optimize_h_ 00002 #define vgl_h_matrix_1d_compute_optimize_h_ 00003 //: 00004 // \file 00005 // \brief compute the h_matrix using Levenberg-Marquardt. 00006 // \author F. Schaffalitzky, RRG 00007 // 00008 // \verbatim 00009 // Modifications 00010 // 23 Mar 2003 - J.L. Mundy - preparing for upgrade to vgl 00011 // computations restricted to vgl_homg_point_1d<double> 00012 // Seems somewhat overdoing it to template the transform 00013 // solvers since double is needed for robust computation 00014 // 23 Jun 2003 - Peter Vanroose - made compute_cool_homg pure virtual 00015 // \endverbatim 00016 00017 #include <vgl/algo/vgl_h_matrix_1d_compute.h> 00018 00019 class vgl_h_matrix_1d_compute_optimize : public vgl_h_matrix_1d_compute 00020 { 00021 public: 00022 vgl_h_matrix_1d_compute_optimize(void) {} 00023 ~vgl_h_matrix_1d_compute_optimize() {} 00024 protected: 00025 bool compute_cool_homg(const vcl_vector<vgl_homg_point_1d<double> >& points1, 00026 const vcl_vector<vgl_homg_point_1d<double> >& points2, 00027 vgl_h_matrix_1d<double>& H); 00028 }; 00029 00030 typedef vgl_h_matrix_1d_compute_optimize vgl_h_matrix_1d_computeOptimise1; 00031 00032 #endif // vgl_h_matrix_1d_compute_optimize_h_