随笔:RGB图像颜色分离(附代码)
将BGR的三原色分离:代码如下方法1: uchar* pImgB = new uchar[col*row*3]; uchar* pImgG = new uchar[col * row * 3]; uchar* pImgR = new uchar[col * row * 3]; for (size_t i = 0; i < row * col * 3; i+=3) { pI...