OpenCV.2.Computer.Vision.Application.Programming.Cookbook--Accessing pixel values
#include
voidsalt(cv::Mat&image,intn)
{
for(intk=0;k(j,i)=255;
}
elseif(image.channels()==3)
{
//colorimage
image.at(j,i)[0]=255;
image.at(j,i)[1]=255;
image.at(j,i)[2]=255;
}
}
}
intmain(intargc,cha