Inspecting Mat in Microsoft Debugger [closed]

asked Jul 20 '17

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?

Preview: (hide)

Closed for the following reason the question is answered, right answer was accepted by ya_ocv_user
close date 2017-07-21 02:34:57.310753

Comments

In vs you can use image watch plugin

LBerger gravatar imageLBerger (Jul 20 '17)edit

I can watch it using imshow(). I need to inspect content of the matrix. MyImage.data. Even better - each element MyImage.data(i,j).

ya_ocv_user gravatar imageya_ocv_user (Jul 20 '17)edit
1
1

OK. "It also displays the pixel coordinate and value at the current mouse position."

ya_ocv_user gravatar imageya_ocv_user (Jul 21 '17)edit