Opencv3.4:显示一张图片

Github

https://github.com/gongluck/Opencv3.4-study.git

#include "opencv2/opencv.hpp"
using namespace cv;
#pragma comment(lib, "opencv_core340d.lib")
#pragma comment(lib, "opencv_imgcodecs340d.lib")
#pragma comment(lib, "opencv_highgui340d.lib")

int main()
{
	Mat image = imread("test.png");
	namedWindow("window");
	imshow("window", image);
	waitKey(0);
	system("pause");
	return 0;
}
posted @ 2018-05-23 22:55  gongluck  阅读(364)  评论(0编辑  收藏  举报