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] |
DVision::Bundle::CameraFile::Camera::Camera |
( |
const std::string & |
filename |
) |
[inline] |
Loads the camera from a file
- Parameters:
-
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:
-
void CameraFile::Camera::load |
( |
const std::string & |
filename |
) |
|
Reads the first camera of filename
- Parameters:
-
void CameraFile::Camera::save |
( |
std::fstream & |
f |
) |
const [protected] |
Saves the camera info, w/o any other mata information, in the given stream
- Parameters:
-
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: