DVision::Bundle::CameraFile::Camera Class Reference

A camera from a camera file. More...

#include <BundleCamera.h>

List of all members.

Public Member Functions

 Camera ()
 Camera (const std::string &filename)
void save (const std::string &filename, const std::string &comment="") const
void load (const std::string &filename)

Public Attributes

float f
 Focal length and distortion parameters.
float k1
float k2
cv::Mat R
 Camera rotation.
cv::Mat t
 Camera translation.

Protected Member Functions

void save (std::fstream &f) const
void load (std::fstream &f)

Friends

class CameraFile

Detailed Description

A camera from a camera file.


Constructor & Destructor Documentation

DVision::Bundle::CameraFile::Camera::Camera (  )  [inline]

Creates an empty camera

DVision::Bundle::CameraFile::Camera::Camera ( const std::string &  filename  )  [inline]

Loads the camera from a file

Parameters:
filename 

Member Function Documentation

void CameraFile::Camera::load ( std::fstream &  f  )  [protected]

Loads the camera info, w/o any other mata information, from the given stream

Parameters:
f 
void CameraFile::Camera::load ( const std::string &  filename  ) 

Reads the first camera of filename

Parameters:
filename 
void CameraFile::Camera::save ( std::fstream &  f  )  const [protected]

Saves the camera info, w/o any other mata information, in the given stream

Parameters:
f 
void CameraFile::Camera::save ( const std::string &  filename,
const std::string &  comment = "" 
) const

Saves the camera in a file with the bund.out format

Parameters:
filename 
comment comment for the first line

The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations
Generated on Thu Feb 7 19:24:58 2013 by  doxygen 1.6.3