Most of images are 24 bit type, but several images are 8 bit type.
For example )) iron/db/SCENE67/bar/bar_0527.jpg
You can see that this is color image when you read directly in the folder.
But If you use 'imread' function, it seems to be grayscale image.
This image has 256x256 cdata and, 256x3 colormap.
So, you have to read like this
Most of images are 24 bit type, but several images are 8 bit type.
For example )) iron/db/SCENE67/bar/bar_0527.jpg You can see that this is color image when you read directly in the folder. But If you use 'imread' function, it seems to be grayscale image.
This image has 256x256 cdata and, 256x3 colormap. So, you have to read like this
[cdata, colormap] = imread('iron/db/SCENE67/bar/bar_0527.jpg'); img = ind2rgb(cdata, colormap);
The variable 'img' will be [256, 256, 3] size.
Thank you Choi seok eon (20153640)