DVision::Bundle::CameraFile Class Reference
Manages Bundle camera files.
More...
#include <BundleCamera.h>
List of all members.
Classes |
class | Camera |
| A camera from a camera file. More...
|
Static Public Member Functions |
static void | readFile (const std::string &filename, std::vector< Camera > &cameras) |
static void | saveFile (const std::string &filename, const std::vector< Camera > &cameras) |
Static Protected Member Functions |
static void | readFromStream (std::fstream &f, int N, std::vector< Camera > &cameras) |
static void | saveToStream (std::fstream &f, const std::vector< Camera > &cameras) |
Detailed Description
Manages Bundle camera files.
Member Function Documentation
void CameraFile::readFile |
( |
const std::string & |
filename, |
|
|
std::vector< Camera > & |
cameras | |
|
) |
| | [static] |
Returns the camera information from the given file
- Parameters:
-
void CameraFile::readFromStream |
( |
std::fstream & |
f, |
|
|
int |
N, |
|
|
std::vector< Camera > & |
cameras | |
|
) |
| | [static, protected] |
Returns the camera information from the given stream
- Parameters:
-
| f | |
| N | number of cameras |
| returned | cameras |
void CameraFile::saveFile |
( |
const std::string & |
filename, |
|
|
const std::vector< Camera > & |
cameras | |
|
) |
| | [static] |
Saves the camera into the given filename
- Parameters:
-
void CameraFile::saveToStream |
( |
std::fstream & |
f, |
|
|
const std::vector< Camera > & |
cameras | |
|
) |
| | [static, protected] |
Writes the camera info to the stream
- Parameters:
-
- Note:
- it does not write the number of cameras
The documentation for this class was generated from the following files: