摘要: Mat mat = imread("baby.jpg"); Mat p = mat.col(20).row(20); uchar* ptr = (uchar*) p.data; int B = ptr[0]; int G = ptr[1]; int R = ptr[2]; cout<<"res:"<<B<<" "<<G<<" "<<R<<" "<<endl; 阅读全文
posted @ 2017-05-04 14:31 Wenism 阅读(2124) 评论(0) 推荐(0) 编辑