Error in reading bmp image file

7 views (last 30 days)
Shivam
Shivam on 26 Jul 2014
Answered: Image Analyst on 26 Jul 2014
I am using matlab 2012a in ubuntu. I want to read a bmp image file but I am getting following error:
Error using readbmpdata (line 48) Bitfield compression not supported
Error in readbmp (line 18) X = readbmpdata(info);
Error in imread (line 435) [X, map] = feval(fmt_s.read, filename, extraArgs{:});
Error in img3 (line 7) J1 = imread('/home/shivam/Downloads/img.bmp', 'bmp');
How can I correct it?

Answers (1)

Image Analyst
Image Analyst on 26 Jul 2014
Use another program to convert it to a supported file, like PNG or BMP without that unrecognized conversion method.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!