forked from jonazpiazu/PTAM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CameraCalibrator.h
42 lines (34 loc) · 954 Bytes
/
CameraCalibrator.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// -*- c++ -*-
// Copyright 2008 Isis Innovation Limited
#ifndef __CAMERACALIBRATOR_H
#define __CAMERACALIBRATOR_H
#include "CalibImage.h"
#include "VideoSource.h"
#include <gvars3/gvars3.h>
#include <vector>
#include "GLWindow2.h"
class CameraCalibrator
{
public:
CameraCalibrator();
void Run();
protected:
void Reset();
void HandleFrame(CVD::Image<CVD::byte> imFrame);
static void MainLoopCallback(void* pvUserData);
void MainLoopStep();
VideoSource mVideoSource;
GLWindow2 mGLWindow;
ATANCamera mCamera;
bool mbDone;
std::vector<CalibImage> mvCalibImgs;
void OptimizeOneStep();
bool mbGrabNextFrame;
GVars3::gvar3<int> mgvnOptimizing;
GVars3::gvar3<int> mgvnShowImage;
GVars3::gvar3<int> mgvnDisableDistortion;
double mdMeanPixelError;
void GUICommandHandler(std::string sCommand, std::string sParams);
static void GUICommandCallBack(void* ptr, std::string sCommand, std::string sParams);
};
#endif