2 #ifndef vpgl_ba_fixed_k_lsqr_h_ 3 #define vpgl_ba_fixed_k_lsqr_h_ 26 const std::vector<std::vector<bool> >& mask);
35 const std::vector<std::vector<bool> >& mask);
105 std::vector<vpgl_calibration_matrix<double> >
K_;
107 std::vector<vnl_double_3x3>
Km_;
111 #endif // vpgl_ba_fixed_k_lsqr_h_ void jac_Aij(unsigned int i, unsigned int j, vnl_double_3x4 const &Pi, vnl_vector< double > const &ai, vnl_vector< double > const &bj, vnl_vector< double > const &c, vnl_matrix< double > &Aij) override
compute the Jacobian Aij.
vnl_double_3x4 param_to_cam_matrix(int i, const double *ai, const vnl_vector< double > &c) const override
compute a 3x4 camera matrix of camera
std::vector< vpgl_calibration_matrix< double > > K_
The fixed internal camera calibration.
vgl_homg_point_3d< double > param_to_point(int j, const double *bj, const vnl_vector< double > &c) const override
construct the
std::vector< vnl_double_3x3 > Km_
The fixed internal camera calibration in matrix form.
void jac_Bij(unsigned int i, unsigned int j, vnl_double_3x4 const &Pi, vnl_vector< double > const &ai, vnl_vector< double > const &bj, vnl_vector< double > const &c, vnl_matrix< double > &Bij) override
compute the Jacobian Bij.
Bundle adjustment sparse least squares base class.
~vpgl_ba_fixed_k_lsqr() override=default
base class bundle adjustment sparse least squares function.
a class for bundle adjustment with fixed intrinsic parameters.
vnl_vector_fixed< double, 4 > param_to_pt_vector(int j, const double *bj, const vnl_vector< double > &c) const override
construct the
void jac_Cij(unsigned int i, unsigned int j, vnl_double_3x4 const &Pi, vnl_vector< double > const &ai, vnl_vector< double > const &bj, vnl_vector< double > const &c, vnl_matrix< double > &Cij) override
compute the Jacobian Cij.
This class implements the perspective camera class as described in Hartley & Zisserman as a finite ca...
vpgl_ba_fixed_k_lsqr(std::vector< vpgl_calibration_matrix< double > > K, const std::vector< vgl_point_2d< double > > &image_points, const std::vector< std::vector< bool > > &mask)
Constructor.
static vnl_vector< double > create_param_vector(const std::vector< vpgl_perspective_camera< double > > &cameras)
Create the parameter vector a from a vector of cameras.
vpgl_perspective_camera< double > param_to_cam(int i, const double *ai, const vnl_vector< double > &c) const override
construct the