MATLAB Answers

Ann G
0

How can I convert a dicom image into tiff?

Asked by Ann G
on 17 Nov 2015
Latest activity Commented on by Thorsten
on 17 Nov 2015
I would like to convert a dicom image into tiff. Do I use imwrite?How can I convert it into 256 gray values?

  0 Comments

Sign in to comment.

1 Answer

Answer by Thorsten
on 17 Nov 2015

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 Comments

Thank you very much!!
Please accept the answer if you're happy with it.

Sign in to comment.