First time here? Check out the FAQ!
answered 2014-01-24 18:26:19 -0600
Vec3b intensity = img.at<Vec3b>(y, x); blue = intensity.val[0]; green = intensity.val[1]; intensity.val[2] = 128;//ya, I can write to the image this way red = intensity.val[2];