Effacer les filtres
Effacer les filtres

Converting Dicom to Png gives dark Image.

2 vues (au cours des 30 derniers jours)
Iram Shahzadi
Iram Shahzadi le 25 Nov 2018
Modifié(e) : madhan ravi le 25 Nov 2018
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');

Réponse acceptée

Walter Roberson
Walter Roberson le 25 Nov 2018
inwrite(mat2gray(I), Filename)
  1 commentaire
Iram Shahzadi
Iram Shahzadi le 25 Nov 2018
Modifié(e) : madhan ravi le 25 Nov 2018
Thank you... this solved my problem

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur DICOM Format dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by