PixelPointFile.h
Go to the documentation of this file.
00001 
00024 #ifndef __PIXEL_POINT__
00025 #define __PIXEL_POINT__
00026 
00027 #include <vector>
00028 
00029 namespace DVision {
00030 
00031 class PixelPointFile
00032 {
00033 public:
00034 
00035   class PixelPoint
00036   {
00037     public:
00038       float u, v; // pixel coordinates
00039       float x, y, z; // 3d coordinates
00040       int idx; // an arbitrary global index
00041       
00042     public:
00043       PixelPoint(float _u, float _v, float _x, float _y, float _z, int _idx):
00044         u(_u), v(_v), x(_x), y(_y), z(_z), idx(_idx){}
00045   };
00046 
00047 public:
00048 
00054   static void saveFile(const std::string &filename,
00055     const std::vector<PixelPoint> &points);
00056   
00062   static void readFile(const std::string &filename,
00063     std::vector<PixelPoint> &points);
00064 
00065 };
00066 
00067 }
00068 
00069 #endif


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