PMVSCamera.h
Go to the documentation of this file.
00001 
00024 #ifndef __PMVS_CAMERA__
00025 #define __PMVS_CAMERA__
00026  
00027 #include <vector>
00028 #include <opencv/cv.h>
00029 #include <string>
00030  
00031 namespace DVision {
00032 namespace PMVS {
00033 
00034 class CameraFile
00035 {
00036 public:
00037 
00041   class Camera
00042   {
00043   public:
00044     // The projection matrix so that (u v s)' = P * (x y z 1)'
00045     // Is 3x4, 64-bit double
00046     cv::Mat P;
00047   };
00048 
00049 public:
00055   static void readFile(const std::string &filename, Camera &camera);
00056   
00062   static void readFile(const std::string &filedir, 
00063     std::vector<Camera> &cameras);
00064     
00070   static void saveFile(const std::string &filename, 
00071     const Camera &cameras);
00072 
00079   static void saveFile(const std::string &filedir, 
00080     const std::vector<Camera> &cameras,
00081     const std::string& format = "%08d.txt");
00082 };
00083 
00084 }
00085 }
00086 
00087 #endif
00088 


re_vision
Author(s): Dorian Galvez-Lopez
autogenerated on Sun Jan 5 2014 11:32:08