How to read .BMP file as matrix or to access values grater than 255.

43 views (last 30 days)
sanjeet
sanjeet on 4 Aug 2015
Commented: sanjeet on 30 Aug 2015
I wannt to display the .bmp file showing actual intensity value. but using the : imread or fileopn command are getting me image with only values upto 255 limitation. while the intensity above the 255 are not displayed in plot.
Please help to get the intensity as the .bmp image is upto 4000 value of intensity in actual

Accepted Answer

Walter Roberson
Walter Roberson on 4 Aug 2015
That image is a .bmp that is an indexed RGB image. The intensities appear to be stored as 8 bits per component, and are retrieved by imread as integers divided by 255. The maximum number of bits per component that the BMP file format can store in indexed images is 8.
The image appears to be read correctly by imread(): the file itself appears not to be what you expect it to be.
  4 Comments

Sign in to comment.

More Answers (0)

Categories

Community Treasure Hunt

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

Start Hunting!