Camera::Linear Class Reference
[Computer Vision]

#include <camera.h>

List of all members.


Detailed Description

A linear camera with zero skew.

Definition at line 39 of file camera.h.


Public Member Functions

void load (std::istream &is)
void save (std::ostream &os)
TooN::Vector< 2 > linearproject (const TooN::Vector< 2 > &camframe, double scale=1) const
TooN::Vector< 2 > project (const TooN::Vector< 2 > &camframe) const
TooN::Vector< 2 > unproject (const TooN::Vector< 2 > &imframe) const
TooN::Matrix< 2, 2 > get_derivative () const
TooN::Matrix
< num_parameters, 2 > 
get_parameter_derivs () const
TooN::Vector
< num_parameters
get_parameter_derivs (const TooN::Vector< 2 > &direction) const
void update (const TooN::Vector< num_parameters > &updates)
TooN::Vector
< num_parameters > & 
get_parameters ()
const TooN::Vector
< num_parameters > & 
get_parameters () const

Static Public Attributes

static const int num_parameters = 4

Member Function Documentation

void Camera::Linear::load ( std::istream &  is  )  [inline]

Load parameters from a stream.

Parameters:
is The stream to use

Definition at line 517 of file camera.h.

void Camera::Linear::save ( std::ostream &  os  )  [inline]

Save parameters to a stream.

Parameters:
os The stream to use

Definition at line 521 of file camera.h.

TooN::Vector< 2 > Camera::Linear::linearproject ( const TooN::Vector< 2 > &  camframe,
double  scale = 1 
) const [inline]

Fast linear projection for working out what's there.

Definition at line 525 of file camera.h.

TooN::Vector< 2 > Camera::Linear::project ( const TooN::Vector< 2 > &  camframe  )  const [inline]

Project from Euclidean camera frame to image plane.

Definition at line 529 of file camera.h.

TooN::Vector< 2 > Camera::Linear::unproject ( const TooN::Vector< 2 > &  imframe  )  const [inline]

Project from image plane to a Euclidean camera.

Definition at line 534 of file camera.h.

TooN::Matrix< 2, 2 > Camera::Linear::get_derivative (  )  const [inline]

Get the derivative of image frame wrt camera frame at the last computed projection in the form $ \begin{bmatrix} \frac{\partial \text{im1}}{\partial \text{cam1}} & \frac{\partial \text{im1}}{\partial \text{cam2}} \\ \frac{\partial \text{im2}}{\partial \text{cam1}} & \frac{\partial \text{im2}}{\partial \text{cam2}} \end{bmatrix} $.

Definition at line 540 of file camera.h.

TooN::Matrix< Camera::Linear::num_parameters, 2 > Camera::Linear::get_parameter_derivs (  )  const [inline]

Get the motion of a point with respect to each of the internal camera parameters.

Definition at line 548 of file camera.h.

TooN::Vector< Camera::Linear::num_parameters > Camera::Linear::get_parameter_derivs ( const TooN::Vector< 2 > &  direction  )  const [inline]

Get the component of the motion of a point in the direction provided with respect to each of the internal camera parameters.

Parameters:
direction The (x,y) direction to use

Definition at line 561 of file camera.h.

void Camera::Linear::update ( const TooN::Vector< num_parameters > &  updates  )  [inline]

Update the internal camera parameters by adding the vector given.

Parameters:
updates Update vector in the format $ \begin{pmatrix}\Delta f_u & \Delta f_v & \Delta u_0 & \Delta v_0 \end{pmatrix} $

Definition at line 571 of file camera.h.

TooN::Vector<num_parameters>& Camera::Linear::get_parameters (  )  [inline]

Returns the vector of camera parameters in the format $ \begin{pmatrix}f_u & f_v & u_0 & v_0 \end{pmatrix} $.

Definition at line 77 of file camera.h.


Member Data Documentation

const int Camera::Linear::num_parameters = 4 [static]

The number of parameters in the camera.

Definition at line 42 of file camera.h.


The documentation for this class was generated from the following file:
Generated on Wed Feb 18 10:23:04 2009 for CVD by  doxygen 1.5.3