#include<iostream>
#include<opencv2/opencv.hpp>
using namespace std;
using namespace cv;
int main()
{
Mat srcImage = imread("G:\\group.jpg");
imshow("【原图】", srcImage);
Mat dstImage;
dstImage.create(srcImage.size(), srcImage.type());
cvtColor(srcImage, dstImage, CV_BGR2GRAY);
imshow("【灰度图】", dstImage);
waitKey(0);
return 0;
}

被折叠的 条评论
为什么被折叠?



