Public Member Functions | Private Member Functions | Private Attributes
vpgl_construct_cameras Class Reference

#include <vpgl_construct_cameras.h>

List of all members.

Public Member Functions

 vpgl_construct_cameras ()
 constructor.
 vpgl_construct_cameras (vcl_vector< vgl_point_2d< double > > p0, vcl_vector< vgl_point_2d< double > > p1, const vpgl_calibration_matrix< double > *K=NULL)
 constructor initializing the set of points.
 ~vpgl_construct_cameras ()
bool construct ()
 function to construct cameras.
const vpgl_perspective_camera
< double > & 
get_camera1 ()
 returns the projection matrix for the cameras.
const vpgl_perspective_camera
< double > & 
get_camera2 ()
void get_world_points (vcl_vector< vgl_point_3d< double > > &world_points)
 gets the world points.

Private Member Functions

vgl_point_3d< double > triangulate_3d_point (const vgl_point_2d< double > &x1, const vnl_double_3x4 &P1, const vgl_point_2d< double > &x2, const vnl_double_3x4 &P2)

Private Attributes

vcl_vector< vgl_point_2d
< double > > 
points0_
 set of points.
vcl_vector< vgl_point_2d
< double > > 
points1_
vnl_double_3x3 K_
vnl_double_3x3 E_
vpgl_perspective_camera< double > P1_
vpgl_perspective_camera< double > P2_

Detailed Description

Definition at line 27 of file vpgl_construct_cameras.h.


Constructor & Destructor Documentation

vpgl_construct_cameras::vpgl_construct_cameras ( )

constructor.

Definition at line 18 of file vpgl_construct_cameras.cxx.

vpgl_construct_cameras::vpgl_construct_cameras ( vcl_vector< vgl_point_2d< double > >  p0,
vcl_vector< vgl_point_2d< double > >  p1,
const vpgl_calibration_matrix< double > *  K = NULL 
)

constructor initializing the set of points.

constructor with initialization of corresponding points.

Definition at line 23 of file vpgl_construct_cameras.cxx.

vpgl_construct_cameras::~vpgl_construct_cameras ( )

Definition at line 43 of file vpgl_construct_cameras.cxx.


Member Function Documentation

bool vpgl_construct_cameras::construct ( )

function to construct cameras.

To construct the cameras according to the correspondence given.

Deprecated:
in favour of vpgl_essential_matrix public function
  • Computes fundamental matrix F using least squares solution (no RANSAC)
  • Computes essential matrix E from F and supplied calibration matrix K
  • Computes the camera pose such that all points are in front of the camera

computing the essential matrix.

Definition at line 52 of file vpgl_construct_cameras.cxx.

const vpgl_perspective_camera<double>& vpgl_construct_cameras::get_camera1 ( ) [inline]

returns the projection matrix for the cameras.

Definition at line 47 of file vpgl_construct_cameras.h.

const vpgl_perspective_camera<double>& vpgl_construct_cameras::get_camera2 ( ) [inline]

Definition at line 48 of file vpgl_construct_cameras.h.

void vpgl_construct_cameras::get_world_points ( vcl_vector< vgl_point_3d< double > > &  world_points)

gets the world points.

Definition at line 153 of file vpgl_construct_cameras.cxx.

vgl_point_3d< double > vpgl_construct_cameras::triangulate_3d_point ( const vgl_point_2d< double > &  x1,
const vnl_double_3x4 P1,
const vgl_point_2d< double > &  x2,
const vnl_double_3x4 P2 
) [private]

Definition at line 165 of file vpgl_construct_cameras.cxx.


Member Data Documentation

Definition at line 67 of file vpgl_construct_cameras.h.

Definition at line 66 of file vpgl_construct_cameras.h.

Definition at line 68 of file vpgl_construct_cameras.h.

Definition at line 68 of file vpgl_construct_cameras.h.

vcl_vector<vgl_point_2d<double> > vpgl_construct_cameras::points0_ [private]

set of points.

Definition at line 63 of file vpgl_construct_cameras.h.

vcl_vector<vgl_point_2d<double> > vpgl_construct_cameras::points1_ [private]

Definition at line 64 of file vpgl_construct_cameras.h.


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