I would like to convert a dicom image into tiff. Do I use imwrite?How can I convert it into 256 gray values?

回答 (1 件)

Thorsten
Thorsten 2015 年 11 月 17 日

1 投票

To convert to tiff (e.g., uint16 dicom to uint16 tif):
I = dicomread('../../Downloads/CR-MONO1-10-chest');
imwrite(I, 'chest.tif');
To convert to 256 values (uint8)
I2 = uint8(255*double(I)/double(max(I(:))));
imwrite(I2, 'chest256.tif');

2 件のコメント

Ann G
Ann G 2015 年 11 月 17 日
Thank you very much!!
Thorsten
Thorsten 2015 年 11 月 17 日
Please accept the answer if you're happy with it.

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

カテゴリ

ヘルプ センター および File ExchangeDICOM Format についてさらに検索

タグ

質問済み:

2015 年 11 月 17 日

コメント済み:

2015 年 11 月 17 日

Community Treasure Hunt

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

Start Hunting!

Translated by