调出照片:
#include<opencv2\opencv.hpp>
#include <iostream>
using namespace std;
using namespace cv;
int main(int argc, char** argv)
{
Mat img;
img = imread("lena2.png");
if (img.empty())
{
cout << "请确定图像文件名称是否正确" << endl;
return -1;
}
imshow("test", img);
waitKey(0);
return 0;
}