2 #ifndef vpgl_rational_adjust_multipt_h_ 3 #define vpgl_rational_adjust_multipt_h_ 17 # include <vcl_msvc_warnings.h> 39 std::vector<float> cam_weights,
56 std::vector<vpgl_rational_camera<double> >
cameras_;
58 std::vector<std::vector<vgl_point_2d<double> > >
corrs_;
59 std::vector<vgl_point_3d<double> >
finals_;
69 std::vector<float>
const& cam_weights,
77 std::vector<float>
const& cam_weights,
84 std::vector<float>
const& cam_weights,
91 double const relative_diameter = 1.0);
98 #endif // vpgl_rational_adjust_multipt_h_
This algorithm finds a set of minimum translations that registers the input set of images using multi...
static bool adjust_lev_marq(std::vector< vpgl_rational_camera< double > > const &cams, std::vector< float > const &cam_weights, std::vector< std::vector< vgl_point_2d< double > > > const &corrs, std::vector< vgl_vector_2d< double > > &cam_translations, std::vector< vgl_point_3d< double > > &intersections)
run Lev-Marq optimization to search the param space to find the best parameter setting.
std::vector< float > cam_weights_
static bool adjust(std::vector< vpgl_rational_camera< double > > const &cams, std::vector< float > const &cam_weights, std::vector< std::vector< vgl_point_2d< double > > > const &corrs, double radius, int n, std::vector< vgl_vector_2d< double > > &cam_translations, std::vector< vgl_point_3d< double > > &intersections)
exhaustively searches the parameter space to find the best parameter setting.
A camera model based on ratios of cubic polynomials.
void get_finals(std::vector< vgl_point_3d< double > > &finals)
std::vector< std::vector< vgl_point_2d< double > > > corrs_
void f(vnl_vector< double > const &translation, vnl_vector< double > &projection_errors) override
The main function.
~vpgl_rational_adjust_multiple_pts()=default
vpgl_cam_trans_search_lsqr()
~vpgl_cam_trans_search_lsqr() override=default
Destructor.
vpgl_rational_adjust_multiple_pts()
std::vector< vgl_point_3d< double > > finals_
std::vector< vgl_point_3d< double > > initial_pts_
std::vector< vpgl_rational_camera< double > > cameras_