bazar  1.3.1
calibmodel.h
Go to the documentation of this file.
1 #ifndef CALIBMODEL_H
2 #define CALIBMODEL_H
3 
4 #include <cv.h>
5 #include <highgui.h>
6 #include <garfeild.h>
7 
8 class CalibModel {
9 public:
10  IplImage *image;
11  CvPoint corners[4];
12 
13  LightMap map;
15 
16  CalibModel(const char *modelfile = "model.bmp");
17  ~CalibModel();
18 
19  bool buildCached(int nbcam, CvCapture *capture, bool cache, planar_object_recognizer &detector);
20 
21 private:
22  const char *win;
23  const char *modelfile;
24 
25  enum State { TAKE_SHOT, CORNERS };
26  State state;
27  int grab;
28  static void onMouseStatic(int event, int x, int y, int flags, void* param);
29  void onMouse(int event, int x, int y, int flags);
30  bool interactiveSetup(CvCapture *capture);
31 };
32 
33 
34 #endif