imread and imshow showing gray image instead of RGB
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!
Which image exactly ? can you give a link to original image?
http://vision.middlebury.edu/stereo/d...
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?
No problems for me.