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

2 ビュー (過去 30 日間)
sanjeet
sanjeet 2015 年 8 月 4 日
コメント済み: sanjeet 2015 年 8 月 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.
sanjeet
sanjeet 2015 年 8 月 30 日
yes I got it know , the image was wrongly created by software

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImages についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by