Hi to everybody
I have a problem about a image converter.
I have to convert my .raw file to .bmp file (by using MATLAB), but I finally need grayscale .bmp file.
I dont need any interpolation!
I have .raw file (12 bit, 3268*2454).
So, the issue is: how can I convert by using MATLAB .raw file into a .bmp file? Otherwise, can I get grayscale .bmp directly from a .raw file? Is any suitable converter in MATLAB?
Thanks to all.
Egor
ps: Better for me to make equal the blue and red component of final image.

3 件のコメント

Geoff
Geoff 2012 年 6 月 14 日
When you say "black and white", do you mean grayscale? Cos normally I would consider a black and white bitmap to have only 2 colours.
Egor Bogatinskiy
Egor Bogatinskiy 2012 年 6 月 14 日
yes, i mean grayscale!
sorry for uncertainty
Walter Roberson
Walter Roberson 2012 年 6 月 14 日
How are the 12-bit quantities stored? With each of them filling 2 bytes (with 4 ignored bits), or with 2 of them filling 3 bytes (8+4, 4+8) ?

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

回答 (2 件)

Walter Roberson
Walter Roberson 2012 年 6 月 15 日

1 投票

Please do not open duplicate questions; you can edit your question or post a comment to it to remind people of its existence.
More effective by far than posting a duplicate of your Question is to answer the queries that people have asked you already.
Walter Roberson
Walter Roberson 2012 年 6 月 15 日

1 投票

To answer your question: No, you cannot get the .bmp directly from the .raw file.

カテゴリ

ヘルプ センター および File ExchangeUse COM Objects in MATLAB についてさらに検索

タグ

質問済み:

2012 年 6 月 14 日

Community Treasure Hunt

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

Start Hunting!

Translated by