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 
16 
17  CalibModel(const char *modelfile = "model.bmp");
18  ~CalibModel();
19 
20  bool buildCached(CvCapture *capture, bool cache);
21 
22 private:
23  const char *win;
24  const char *modelfile;
25 
26  enum State { TAKE_SHOT, CORNERS };
27  State state;
28  int grab;
29  static void onMouseStatic(int event, int x, int y, int flags, void* param);
30  void onMouse(int event, int x, int y, int flags);
31  bool interactiveSetup(CvCapture *capture);
32 };
33 
34 
35 #endif