- 使用C++ opencv读取一张图片
如下操作:
cv::Mat m4 = cv::imread("/home/juchunyu/20231013/globalPlanner/PM.pgm",cv::IMREAD_GRAYSCALE);
std::cout << "图像宽为:" << m4.cols << "\t高度为:"
cv::Mat m4 = cv::imread("/home/juchunyu/20231013/globalPlanner/PM.pgm",cv::IMREAD_GRAYSCALE);
std::cout << "图像宽为:" << m4.cols << "\t高度为:"