Repository navigation
Expand file tree
/
Copy pathjelloTransform1.h
More file actions
57 lines (39 loc) · 1.57 KB
/
Copy pathjelloTransform1.h
File metadata and controls
57 lines (39 loc) · 1.57 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
#ifndef JELLO_TRANSFORM_1
#define JELLO_TRANSFORM_1
// Video Image PSNR and SSIM
#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 "nullTransform.h"
#include "svd.h"
#include "structures.h"
#include "settings.h"
#include "FullFrameTransform.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/nonfree/features2d.hpp>
#include <opencv2/video/tracking.hpp>
#include "opencv2/imgproc/imgproc_c.h"
class JelloTransform1 : public FullFrameTransform {
public:
float ** shiftsX;
float ** shiftsY;
int jelloMinX, jelloMinY;
JelloTransform1();
JelloTransform1(Mat img1, Mat img2, int index0, int index1);
void CreateAbsoluteTransform(JelloTransform1 prevTransform);
void TransformPoint(float x, float y, float &x2, float &y2);
void TransformPointAbs(float x, float y, float &x2, float &y2);
protected:
vector<Transformation> jelloTransforms;
void CalcJelloTransform(Mat img1, Mat img2);
void GetJelloShift(float x, float y, float &x2, float &y2);
Mat FullFrameTransformImage(Mat input);
void FullFrameTransformPoint(float x, float y, float &x2, float &y2);
void AllocateShiftMem();
};
#endif