标签:
摘自 <<Learning OpenCV: Computer Vision in C++ with the OpenCV Library>>
#include "opencv2/highgui/highgui.hpp" using namespace cv; int main(int argc, char ** argv) { Mat img = imread(argv[1] - 1); if(img.empty()) return -1; namedWindow("Example", CV_WINDOW_AUTOSIZE); imshow("Example", img); waitKey(0); destroyWindow("Example"); }
标签:
原文地址:http://www.cnblogs.com/xinxue/p/5219032.html