Basic least squares solution for a general projective camera given corresponding world and image points. More...
#include <vpgl_camera_compute.h>
Static Public Member Functions | |
| static bool | compute (const vcl_vector< vgl_homg_point_2d< double > > &image_pts, const vcl_vector< vgl_homg_point_3d< double > > &world_pts, vpgl_proj_camera< double > &camera) |
| Compute from two sets of corresponding points. | |
| static bool | compute (const vcl_vector< vgl_point_2d< double > > &image_pts, const vcl_vector< vgl_point_3d< double > > &world_pts, vpgl_proj_camera< double > &camera) |
| static bool | compute (vpgl_rational_camera< double > const &rat_cam, vgl_point_3d< double > const &world_center, vpgl_proj_camera< double > &camera) |
| Find a projective camera that best approximates the rational camera at the world center (lon (deg), lat (deg), elev (meters) ). | |
| static vgl_h_matrix_3d< double > | norm_trans (vpgl_rational_camera< double > const &rat_cam) |
| An auxiliary matrix that transforms (normalizes) world points prior to projection by a projective camera. (lon, lat, elevation)->[-1, 1]. | |
Private Member Functions | |
| vpgl_proj_camera_compute () | |
| default constructor (is private). | |
Basic least squares solution for a general projective camera given corresponding world and image points.
Definition at line 23 of file vpgl_camera_compute.h.
| vpgl_proj_camera_compute::vpgl_proj_camera_compute | ( | ) | [private] |
default constructor (is private).
| bool vpgl_proj_camera_compute::compute | ( | const vcl_vector< vgl_homg_point_2d< double > > & | image_pts, |
| const vcl_vector< vgl_homg_point_3d< double > > & | world_pts, | ||
| vpgl_proj_camera< double > & | camera | ||
| ) | [static] |
Compute from two sets of corresponding points.
Put the resulting camera into camera, return true if successful.
Definition at line 52 of file vpgl_camera_compute.cxx.
| bool vpgl_proj_camera_compute::compute | ( | const vcl_vector< vgl_point_2d< double > > & | image_pts, |
| const vcl_vector< vgl_point_3d< double > > & | world_pts, | ||
| vpgl_proj_camera< double > & | camera | ||
| ) | [static] |
Definition at line 35 of file vpgl_camera_compute.cxx.
| bool vpgl_proj_camera_compute::compute | ( | vpgl_rational_camera< double > const & | rat_cam, |
| vgl_point_3d< double > const & | world_center, | ||
| vpgl_proj_camera< double > & | camera | ||
| ) | [static] |
Find a projective camera that best approximates the rational camera at the world center (lon (deg), lat (deg), elev (meters) ).
Definition at line 222 of file vpgl_camera_compute.cxx.
| vgl_h_matrix_3d< double > vpgl_proj_camera_compute::norm_trans | ( | vpgl_rational_camera< double > const & | rat_cam | ) | [static] |
An auxiliary matrix that transforms (normalizes) world points prior to projection by a projective camera. (lon, lat, elevation)->[-1, 1].
obtain a scaling transformation to normalize world geographic coordinates.
The resulting values will be on the range [-1, 1] The transform is valid anywhere the rational camera is valid
Definition at line 429 of file vpgl_camera_compute.cxx.
1.7.5.1