Various methods for computing a perspective camera. More...
#include <vpgl_camera_compute.h>
Static Public Member Functions | |
| static bool | compute (const vcl_vector< vgl_point_2d< double > > &image_pts, const vcl_vector< vgl_point_3d< double > > &world_pts, const vpgl_calibration_matrix< double > &K, vpgl_perspective_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_2d< double > > &ground_pts, vpgl_perspective_camera< double > &camera) |
| Compute from two sets of corresponding 2D points (image and ground plane). | |
| static bool | compute (vpgl_rational_camera< double > const &rat_cam, vgl_box_3d< double > const &approximation_volume, vpgl_perspective_camera< double > &camera, vgl_h_matrix_3d< double > &norm_trans) |
| Compute from a rational camera. | |
| static bool | compute_local (vpgl_rational_camera< double > const &rat_cam, vgl_box_3d< double > const &approximation_volume, vpgl_perspective_camera< double > &camera, vgl_h_matrix_3d< double > &norm_trans) |
| Compute from rational camera using a local Euclidean coordinate system. | |
Private Member Functions | |
| vpgl_perspective_camera_compute () | |
Various methods for computing a perspective camera.
Definition at line 67 of file vpgl_camera_compute.h.
| vpgl_perspective_camera_compute::vpgl_perspective_camera_compute | ( | ) | [private] |
| bool vpgl_perspective_camera_compute::compute | ( | const vcl_vector< vgl_point_2d< double > > & | image_pts, |
| const vcl_vector< vgl_point_3d< double > > & | world_pts, | ||
| const vpgl_calibration_matrix< double > & | K, | ||
| vpgl_perspective_camera< double > & | camera | ||
| ) | [static] |
Compute from two sets of corresponding points.
Put the resulting camera into camera, return true if successful.
Definition at line 449 of file vpgl_camera_compute.cxx.
| bool vpgl_perspective_camera_compute::compute | ( | const vcl_vector< vgl_point_2d< double > > & | image_pts, |
| const vcl_vector< vgl_point_2d< double > > & | ground_pts, | ||
| vpgl_perspective_camera< double > & | camera | ||
| ) | [static] |
Compute from two sets of corresponding 2D points (image and ground plane).
| ground_pts | are 2D points representing world points with Z=0 The calibration matrix of camera is enforced This computation is simplier than the general case above and only requires 4 points Put the resulting camera into camera, return true if successful. |
Definition at line 604 of file vpgl_camera_compute.cxx.
| bool vpgl_perspective_camera_compute::compute | ( | vpgl_rational_camera< double > const & | rat_cam, |
| vgl_box_3d< double > const & | approximation_volume, | ||
| vpgl_perspective_camera< double > & | camera, | ||
| vgl_h_matrix_3d< double > & | norm_trans | ||
| ) | [static] |
Compute from a rational camera.
Put the resulting camera into camera, return true if successful. The approximation volume defines the region of space (lon (deg), lat (deg), elev (meters)) where the perspective approximation is valid. Norm trans is a pre-multiplication of the perspective camera to account for scaling the lon, lat and elevation to the range [-1, 1]
Definition at line 692 of file vpgl_camera_compute.cxx.
| bool vpgl_perspective_camera_compute::compute_local | ( | vpgl_rational_camera< double > const & | rat_cam, |
| vgl_box_3d< double > const & | approximation_volume, | ||
| vpgl_perspective_camera< double > & | camera, | ||
| vgl_h_matrix_3d< double > & | norm_trans | ||
| ) | [static] |
Compute from rational camera using a local Euclidean coordinate system.
Definition at line 813 of file vpgl_camera_compute.cxx.
1.7.5.1