#include <BundleCamera.h>
Public Member Functions | |
Camera () | |
Camera (const std::string &filename) | |
void | load (const std::string &filename) |
void | save (const std::string &filename, const std::string &comment="") const |
Public Attributes | |
float | f |
float | k1 |
float | k2 |
cv::Mat | R |
cv::Mat | t |
Protected Member Functions | |
void | load (std::fstream &f) |
void | save (std::fstream &f) const |
Friends | |
class | CameraFile |
A camera from a camera file
Definition at line 42 of file BundleCamera.h.
DVision::Bundle::CameraFile::Camera::Camera | ( | ) | [inline] |
Creates an empty camera
Definition at line 53 of file BundleCamera.h.
DVision::Bundle::CameraFile::Camera::Camera | ( | const std::string & | filename | ) | [inline] |
void CameraFile::Camera::load | ( | const std::string & | filename | ) |
Reads the first camera of filename
filename |
Definition at line 60 of file BundleCamera.cpp.
void CameraFile::Camera::load | ( | std::fstream & | f | ) | [protected] |
Loads the camera info, w/o any other mata information, from the given stream
f |
Definition at line 120 of file BundleCamera.cpp.
void CameraFile::Camera::save | ( | const std::string & | filename, |
const std::string & | comment = "" |
||
) | const |
Saves the camera in a file with the bund.out format
filename | |
comment | comment for the first line |
Definition at line 37 of file BundleCamera.cpp.
void CameraFile::Camera::save | ( | std::fstream & | f | ) | const [protected] |
Saves the camera info, w/o any other mata information, in the given stream
f |
Definition at line 98 of file BundleCamera.cpp.
friend class CameraFile [friend] |
Definition at line 79 of file BundleCamera.h.
Definition at line 45 of file BundleCamera.h.
Definition at line 45 of file BundleCamera.h.
Definition at line 45 of file BundleCamera.h.
Definition at line 46 of file BundleCamera.h.
Definition at line 47 of file BundleCamera.h.