Static Public Member Functions | Private Member Functions | List of all members
vpgl_perspective_camera_compute Class Reference

Various methods for computing a perspective camera. More...

#include <vpgl_camera_compute.h>

Static Public Member Functions

static bool compute (const std::vector< vgl_point_2d< double > > &image_pts, const std::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. More...
 
static bool compute_dlt (const std::vector< vgl_point_2d< double > > &image_pts, const std::vector< vgl_point_3d< double > > &world_pts, vpgl_perspective_camera< double > &camera, double &err)
 Uses the direct linear transform algorithm described in "Multiple. More...
 
static bool compute (const std::vector< vgl_point_2d< double > > &image_pts, const std::vector< vgl_point_2d< double > > &ground_pts, vpgl_perspective_camera< double > &camera)
 Compute from two sets of corresponding 2D points (image and ground plane). More...
 

Private Member Functions

 vpgl_perspective_camera_compute ()=delete
 

Detailed Description

Various methods for computing a perspective camera.

Definition at line 60 of file vpgl_camera_compute.h.

Constructor & Destructor Documentation

◆ vpgl_perspective_camera_compute()

vpgl_perspective_camera_compute::vpgl_perspective_camera_compute ( )
privatedelete

Member Function Documentation

◆ compute() [1/2]

bool vpgl_perspective_camera_compute::compute ( const std::vector< vgl_point_2d< double > > &  image_pts,
const std::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

Returns
true if successful.

Definition at line 140 of file vpgl_camera_compute.cxx.

◆ compute() [2/2]

bool vpgl_perspective_camera_compute::compute ( const std::vector< vgl_point_2d< double > > &  image_pts,
const std::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).

Parameters
ground_ptsare 2D points representing world points with Z=0 The calibration matrix of camera is enforced This computation is simpler than the general case above and only requires 4 points Put the resulting camera into camera
Returns
true if successful.
Parameters
ground_ptsare 2D points representing world points with Z=0 The calibration matrix of camera is enforced This computation is simpler than the general case above and only requires 4 points Put the resulting camera into camera, return true if successful.

Definition at line 422 of file vpgl_camera_compute.cxx.

◆ compute_dlt()

bool vpgl_perspective_camera_compute::compute_dlt ( const std::vector< vgl_point_2d< double > > &  image_pts,
const std::vector< vgl_point_3d< double > > &  world_pts,
vpgl_perspective_camera< double > &  camera,
double &  err 
)
static

Uses the direct linear transform algorithm described in "Multiple.

View Geometry in Computer Vision" to find the projection matrix, and extracts the parameters of the camera from this projection matrix. Requires: image_pts and world_pts are correspondences. image_pts is the projected form, and world_pts is the unprojected form. There need to be at least 6 points.

Returns
true if successful. err is filled with the two-norm of the projection error vector. camera is filled with the perspective decomposition of the projection matrix.

View Geometry in Computer Vision" to find the projection matrix, and extracts the parameters of the camera from this projection matrix. Requires: image_pts and world_pts are correspondences. image_pts is the projected form, and world_pts is the unprojected form. There need to be at least 6 points. Returns: true if successful. err is filled with the two-norm of the projection error vector. camera is filled with the perspective decomposition of the projection matrix

Definition at line 299 of file vpgl_camera_compute.cxx.


The documentation for this class was generated from the following files: