I have to get information about the scalar value of a lot of pixels on a gray-scale image using OpenCV. It will be traversing hundreds of thousands of pixels so I need the
for (int row=0;row
You need to get the data pointer on each new row because opencv will pad the data to 32bit boundary at the start of each row