Converting Dicom to Png gives dark Image.

7 ビュー (過去 30 日間)
Iram Shahzadi
Iram Shahzadi 2018 年 11 月 25 日
編集済み: madhan ravi 2018 年 11 月 25 日
I want to save dicom (uint 16) image to png format but image appear blank, although brain image is displayed well with imshow command
I converted image to uint 8 but the problem is same again. I have attached a zip folder with few dicom images. can anyone please help me in writing dicom image in same resolution as it appears with imshow command
I =uint8(dicomread(FileName));
imshow(I,[]);
imwrite(I,'DTP.png');

採用された回答

Walter Roberson
Walter Roberson 2018 年 11 月 25 日
inwrite(mat2gray(I), Filename)
  1 件のコメント
Iram Shahzadi
Iram Shahzadi 2018 年 11 月 25 日
編集済み: madhan ravi 2018 年 11 月 25 日
Thank you... this solved my problem

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by