Inspecting Mat in Microsoft Debugger [closed]

asked 2017-07-20 08:14:29 -0600

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?

edit retag flag offensive reopen merge delete

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 ( 2017-07-20 08:55:29 -0600 )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 ( 2017-07-20 10:38:00 -0600 )edit
1
1

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

ya_ocv_user gravatar imageya_ocv_user ( 2017-07-21 02:31:57 -0600 )edit