How can I convert a dicom image into tiff?

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

Respuestas (1)

Thorsten
Thorsten el 17 de Nov. de 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 comentarios

Ann G
Ann G el 17 de Nov. de 2015
Thank you very much!!
Thorsten
Thorsten el 17 de Nov. de 2015
Please accept the answer if you're happy with it.

Iniciar sesión para comentar.

Categorías

Más información sobre DICOM Format en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 17 de Nov. de 2015

Comentada:

el 17 de Nov. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by