// 判断图像是否读入成功 if (image.empty()) { std::cout << "Could not read the image" << std::endl; return 1; } // 显示图像 cv::namedWindow("Example", cv::WINDOW_NORMAL); cv::imshow("Example", image); cv::waitKey(0); return 0; }

#include opencv2opencvhpp #include iostream int mainint argc char argv 读入图像 cvMat image = cvimreadexamplejpg;

原文地址: https://www.cveoy.top/t/topic/bnyt 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录