I\'m having trouble trying to find out how to access rgb pixel in the new version (2.x) of OpenCV. I tried using a mix of the old and the new method but without success.
Inside your loop, you can do:
img.at(j,i)[0] = 0; // Blue Channel img.at(j,i)[1] = 0; // Green Channel img.at(j,i)[2] = 0; // Red Channel
Is this what you wanted or I understood incorrectly?