Ask Your Question

Revision history [back]

Inspecting Mat in Microsoft Debugger

I have got an error trying to scan image content and process it pixel by pixel. I decided to check MyImage.data. Microsoft Debugger perfectly shows all the object members, but the content of .data is all (unsigned char)255. Meanwhile the image normally shows using imshow(window_name, MyImage); I use opencv-2.4.13.2-vc14.exe and read image from file: Mat MyImage; MyImage = imread("Circle.bmp", IMREAD_GRAYSCALE); What's wrong?