void operation::addColorCast(IplImage pFrame, int color)
{
switch (color)
{
case 0://偏红
{
cout<<"blue "<
uchar data = (uchar*)pFrame->imageData;
int row = pFrame->height;
int col = pFrame->width;
for(int i = 0;i < row;i++)
{
for(int j = 0;j < col;j++)
{
data[i * pFrame->widthStep + j * pFrame->nChannels + 0] = 255;
}
}
break;
}
那么除了这rgb三个颜色是+0+1+2,其他颜色怎么模拟啊