#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
using namespace cv;
int main( )
{
const char *fileName = "1.jpg";
Mat srcImage = cv::imread(fileName);
if( !srcImage.data )
return 1;
imshow(fileName, srcImage);
waitKey(0);
return 0;
}
载入图片并显示
最新推荐文章于 2023-02-26 22:49:05 发布