VS+OpenCV读取图片简单DEMO

#include 
#include 
#include 
using namespace cv;
int main(int argc,char **argv)
{
	Mat src = imread("D:\\摄影\\20.8.19成都夕阳\\未命名导出\\001.jpg");
	if (src.empty())
	{
		printf("Could not load image...");
		return -1;
	}
	namedWindow("Test OpenCV Setup", CV_WINDOW_AUTOSIZE);
	imshow("Test OpenCV Setup", src);
	waitKey(0);
	return 0;
}

你可能感兴趣的:(MATLAB)