//一种求利用色彩空间转换求亮度的方法
//convert to yuv color space,and the intensity info storded in y plane
Mat img_yuv;
cvtColor(img,img_yuv,CV_BGR2YCrCb);
//splite to planes
vector<Mat> planes;
split(img_yuv,planes);
cout<<planes[0];
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请
点击举报。