forked from NickStupich/Rolling-Shutter-Video-Stabilization
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathITransform.h
45 lines (37 loc) · 1.41 KB
/
ITransform.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
43
44
45
#ifndef ITRANSFORM_H
#define ITRANSFORM_H
#include <iostream> // for standard I/O
#include <string> // for strings
#include <iomanip> // for controlling float print precision
#include <sstream> // string to number conversion
#include <time.h>
#include <numeric>
#include "svd.h"
#include "structures.h"
#include "settings.h"
#include "coreFuncs.h"
#include <opencv2/imgproc/imgproc.hpp> // Gaussian Blur
#include <opencv2/core/core.hpp> // Basic OpenCV structures (cv::Mat, Scalar)
#include <opencv2/highgui/highgui.hpp> // OpenCV window I/O
#include <opencv2/features2d/features2d.hpp>
#include <opencv2/features2d.hpp>
#include <opencv2/video/tracking.hpp>
#include "opencv2/imgproc/imgproc_c.h"
class ITransform
{
public:
static imgBound frameBound;
static vector<float> frameErrors;
static int imgHeight, imgWidth;
static int processedFrameCount;
ITransform();
ITransform(Mat img1, Mat img2, int index0, int index1);
void TransformImageThread(Mat input, Mat out, threadParams tExtent, imgBound *fb);
Mat TransformImage(Mat input);
virtual void TransformPoint(float x, float y, float &x2, float &y2) = 0;
virtual void TransformPointAbs(float x, float y, float &x2, float &y2) = 0;
static void analyzeTransformAccuracies();
protected:
void evalTransforms(int indx0, int index1, char* baseShiftFilename);
};
#endif