imread and imshow showing gray image instead of RGB

asked 2017-09-20 09:15:46 -0600

Fl092 gravatar image

updated 2017-09-20 09:49:33 -0600

Hello,

I am trying to open one of the images from Middlebury Stereo 2014 data set. When I open and display the image with

Mat mIn = imread(name, -1); imshow(name, mIn);

I get shown a grayscale image. $file imgname spits out PNG image data, 2988 x 2008, 8-bit/color RGB, non-interlaced. $pngcheck imgname says (2988x2008, 24-bit RGB, non-interlaced, 68.6%).

Is there something I overlooked?

Thanks for the help!

edit retag flag offensive close merge delete

Comments

Which image exactly ? can you give a link to original image?

LBerger gravatar imageLBerger ( 2017-09-20 10:53:48 -0600 )edit
1

Of course I haven't got any problem It's a color image [2964 x 2000] 3 channels. Waht's your opencv version? platform? how do you build png lib?

LBerger gravatar imageLBerger ( 2017-09-20 11:33:54 -0600 )edit

No problems for me.

Tetragramm gravatar imageTetragramm ( 2017-09-20 22:12:26 -0600 )edit