摘自 <<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"); }
时间: 2024-10-17 17:31:39