-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathInputImage.hpp
48 lines (44 loc) · 969 Bytes
/
InputImage.hpp
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
#include <opencv2/core/core.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <iostream>
#define MARK_RADIUS (10)
using namespace cv;
using namespace std;
enum ShowInImg
{
IMG_INPUT = 0,
IMG_GRAY,
IMG_DRAW,
IMG_YUV,
IMG_DRAWYUV,
IMG_OUTPUT,
IMG_COLORIZED,
IMG_NUM
};
static void my_mouse_callback(int event, int x, int y, int flags, void* param);
class InputImage
{
public:
InputImage(Mat1f mat_image);
InputImage(Mat3f mat_image);
InputImage(Mat3f mat_image, Mat3f mat_image_reference);
Mat3f get_Image(int num);
void draw_Image(void);
void show_Image(int num);
private:
Mat3f copy_GlaychForRGBch(Mat1f, Mat3f);
void draw_Trajectory(Mat3f *);
void draw_Trajectory_Byreference(Mat3f *);
Mat3f mat_input;
Mat3f mat_input_reference;
Mat3f mat_draw;
Mat3f mat_draw_bp;
Mat3f mat_draw_yuv;
Mat3f mat_yuv;
Mat1f mat_gray;
bool mouse_click;
bool mouse_left;
int mouse_x;
int mouse_y;
};