Dicomread a File and Dicomwrite it results in different outputs...
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Ingo Hermann
le 28 Août 2020
Réponse apportée : Ingo Hermann
le 30 Août 2020
I have a very weird problem.
I open a DicomFile and save it without changing a thing, but when I look at the dcm in synedra view, they are different.
The original files goes from -4096 to 4096 but the save file only from 0 to 4096. I then tried to stretch the file by myself i.o.:
x = (2.*x-4096);
But this was also not working, dicomwrite cuts the values below 0...
dinfo = dicominfo('testDicom.dcm');
x = dicomread(dinfo);
dicomwrite(x, 'testDicom2.dcm', dinfo)
Any ideas?
Best Ingo
6 commentaires
Rik
le 29 Août 2020
Please post the solution as an answer and accept it. That way people with a similar problem can more easily find the solution.
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Convert Image Type dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!