Access pixels with Mat OpenCV
问题 I would like to access pixels in RGB with OpenCV 2.3. I'm trying like this but it's like every pixels are equal frame after frame because I got no output. Images are from my webcam and I can see them. Btw RED = 0; THX Mat frame; Mat oldFrame; VideoCapture cap(0); cap >> oldFrame; sumFramePix = oldFrame.cols * oldFrame.rows; nbChannels = oldFrame.channels(); cout << "NbcHANNELs : " << nbChannels << endl; imshow("Video 1", oldFrame); while(1) { cap >> frame; imshow("Video 1", frame); for(int i