First time here? Check out the FAQ!
answered 2018-11-09 07:53:26 -0600
This question was answered before : http://answers.opencv.org/question/198990/the-complexity-of-the-pixel-access-in-mat/ This shows also a performant way to do it(the thing berak meant with "xy" problem i think).