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 w
Change
oldFrame = frame;
to
oldFrame = frame.clone();
You are creating two Mat objects that point to the same data. clone() makes a deep copy.
clone()