study from :
https://www.jianshu.com/p/c16b7c870356
1 #include <cstdio> 2 #include <cstdlib> 3 #include <cmath> 4 #include <cstring> 5 #include <string> 6 #include <algorithm> 7 #include <set> 8 #include <map> 9 #include <queue> 10 #include <iostream> 11 #include <opencv2\core\core.hpp> 12 #include <opencv2\highgui\highgui.hpp> 13 #include <opencv2\imgproc\imgproc.hpp> 14 using namespace std; 15 using namespace cv; 16 17 #define ll long long 18 19 const int maxn=1e4+10; 20 const int inf=1e9; 21 const double eps=1e-8; 22 23 24 25 int main() 26 { 27 Mat img=imread("C:\\Users\\scientific\\Desktop\\test.jpg"); //两个'\' 28 imshow("test",img); 29 waitKey(0); 30 return 0; 31 } 32 /* 33 34 */