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

2 次查看(过去 30 天)
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

采纳的回答

Walter Roberson
Walter Roberson 2015-8-4
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 个评论
Image Analyst
Image Analyst 2015-8-5
Why do you believe it should have values up to 4000? Do you have knowledge of how it was made? Maybe it was a 16 bit image and someone just wrote it out wrong.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Images 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by