-
Notifications
You must be signed in to change notification settings - Fork 2
/
header.h
32 lines (26 loc) · 660 Bytes
/
header.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
//
// Created by lazycal on 2017/6/11.
//
#ifndef RAY_TRACING_HEADER_H
#define RAY_TRACING_HEADER_H
#include <iostream>
#include <cassert>
#include <opencv2/opencv.hpp>
using namespace cv;
using std::cout;
using std::endl;
#define SHOW_IMG(img){\
cvNamedWindow(#img,CV_WINDOW_KEEPRATIO | CV_WINDOW_NORMAL);\
cv::imshow(#img, img); \
cv::waitKey(); \
}
#define SHOW_IMG_NO_WAIT(img){\
cvNamedWindow(#img,CV_WINDOW_KEEPRATIO | CV_WINDOW_NORMAL);\
cv::imshow(#img, img); \
}
#define SHOW_IMG_WAIT(img, time){\
cvNamedWindow(#img,CV_WINDOW_KEEPRATIO | CV_WINDOW_NORMAL);\
cv::imshow(#img, img); \
cv::waitKey(time); \
}
#endif //RAY_TRACING_HEADER_H