bazar  1.3.1
lightcollector.h
Go to the documentation of this file.
1 #ifndef _LIGHTCOLLECTOR_H
2 #define _LIGHTCOLLECTOR_H
3 
4 #include <cv.h>
5 
6 class LightMap;
7 
15 public:
17  LightCollector(const LightCollector &lc);
20  void copy(const LightCollector &lc);
21 
23  bool genGrid(float corners[4][2], int nx, int ny);
24 
25  void averageImage(IplImage *im, CvMat *_homography);
26 
27  int serializeSize();
28  void serialize(char *buffer);
29  void load(const char *buffer, int size);
30  void invalidate();
31 
32  // for debugging
33  void drawGrid(IplImage *im, CvMat *_homography);
34  void drawAvg(IplImage *im);
35 
36  CvMat *worldRT;
37 
38  bool cmpWithRef(const LightCollector &ref, float *val, const float *scale=0, const float *shift=0);
39 
40  //friend LightMap;
41 //private:
42  float *avg;
44  int *triangles;
45  int nbTri;
46  int nx, ny;
48  int nbPix;
49 };
50 
51 #endif