2 #ifndef vpgl_optimize_camera_h_ 3 #define vpgl_optimize_camera_h_ 177 const double xtol = 0.0001,
const unsigned nevals=10000);
184 const double xtol = 0.0001,
const unsigned nevals=10000);
192 #endif // vpgl_optimize_camera_h_ A class for the perspective camera model.
~vpgl_orientation_position_lsqr() override=default
Destructor.
void f(vnl_vector< double > const &x, vnl_vector< double > &fx) override
The main function.
std::vector< vgl_point_2d< double > > image_points_
The corresponding points in the image.
std::vector< vgl_point_2d< double > > image_points_
The corresponding points in the image.
vpgl_calibration_matrix< double > K_
The fixed internal camera calibration.
void gradf(vnl_vector< double > const &x, vnl_matrix< double > &jacobian) override
Gradients of the cost-function w.r.t. to the 7 free parameters of x.
std::vector< vgl_point_2d< double > > image_points_
The corresponding points in the image.
static vpgl_perspective_camera< double > opt_orient_pos_f(const vpgl_perspective_camera< double > &camera, const std::vector< vgl_homg_point_3d< double > > &world_points, const std::vector< vgl_point_2d< double > > &image_points, const double xtol=0.0001, const unsigned nevals=10000)
optimize orientation, position and focal length for a perspective camera.
vpgl_optimize_camera()
Constructor private - static methods only.
this class optimizes the rotation/translation of a perspective camera given an initial estimate and a...
vpgl_orientation_lsqr(const vpgl_calibration_matrix< double > &K, const vgl_point_3d< double > &c, const std::vector< vgl_homg_point_3d< double > > &world_points, std::vector< vgl_point_2d< double > > image_points)
Constructor.
std::vector< vgl_point_2d< double > > image_points_
The corresponding points in the image.
vgl_point_3d< double > c_
The fixed camera center.
static vpgl_perspective_camera< double > opt_orient(const vpgl_perspective_camera< double > &camera, const std::vector< vgl_homg_point_3d< double > > &world_points, const std::vector< vgl_point_2d< double > > &image_points)
optimize orientation for a perspective camera.
vpgl_calibration_matrix< double > K_init_
The initial calibration matrix.
this class optimizes the rotation of a perspective camera given an initial estimate and a known inter...
std::vector< vgl_homg_point_3d< double > > world_points_
The known points in the world.
std::vector< vgl_homg_point_3d< double > > world_points_
The known points in the world.
static vpgl_perspective_camera< double > opt_orient_pos_cal(const vpgl_perspective_camera< double > &camera, const std::vector< vgl_homg_point_3d< double > > &world_points, const std::vector< vgl_point_2d< double > > &image_points, const double xtol=0.0001, const unsigned nevals=10000)
optimize orientation, position and internal calibration(no skew)for a perspective camera.
vpgl_calibration_matrix< double > K_
The fixed internal camera calibration.
~vpgl_orientation_lsqr() override=default
Destructor.
virtual void trace(int iteration, vnl_vector< double > const &x, vnl_vector< double > const &fx)
std::vector< vgl_homg_point_3d< double > > world_points_
The known points in the world.
void f(vnl_vector< double > const &x, vnl_vector< double > &fx) override
The main function.
static vpgl_perspective_camera< double > opt_orient_pos(const vpgl_perspective_camera< double > &camera, const std::vector< vgl_homg_point_3d< double > > &world_points, const std::vector< vgl_point_2d< double > > &image_points)
optimize orientation and position for a perspective camera.
void f(vnl_vector< double > const &x, vnl_vector< double > &fx) override
The main function.
This class implements the perspective camera class as described in Hartley & Zisserman as a finite ca...
std::vector< vgl_homg_point_3d< double > > world_points_
The known points in the world.
void f(vnl_vector< double > const &x, vnl_vector< double > &fx) override
The main function.
~vpgl_orientation_position_focal_lsqr() override=default
Destructor.
this class optimizes the rotation/translation/focal length of a perspective camera given an initial e...
vpgl_orientation_position_focal_lsqr(const vpgl_calibration_matrix< double > &K_init, const std::vector< vgl_homg_point_3d< double > > &world_points, std::vector< vgl_point_2d< double > > image_points)
Constructor.
vpgl_orientation_position_lsqr(const vpgl_calibration_matrix< double > &K, const std::vector< vgl_homg_point_3d< double > > &world_points, std::vector< vgl_point_2d< double > > image_points)
Constructor.
~vpgl_orientation_position_calibration_lsqr() override=default
Destructor.
this class optimizes the rotation/translation/calibration of a perspective camera given an initial es...
vpgl_orientation_position_calibration_lsqr(const std::vector< vgl_homg_point_3d< double > > &world_points, std::vector< vgl_point_2d< double > > image_points)
Constructor.