How can I convert a dicom image into tiff?

조회 수: 5 (최근 30일)
Ann G
Ann G 2015년 11월 17일
댓글: Thorsten 2015년 11월 17일
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일
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.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 DICOM Format에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by