How to write a sequence of dicom file ?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
kitty varghese
le 28 Fév 2018
Commenté : Prasad Gianluca Colombage Fernando
le 26 Nov 2018
I have a matrix of size 262144x234. I have reshaped this matrix into 512x512x234. Now I want to write this sequence of 243 matrices into a dicom file. Such that I can use it for view on ITK-Snap software.
IMin0=reshape(IMin0,512,[],234);
dicomwrite(IMin0,'original.dcm');
0 commentaires
Réponse acceptée
Stephen23
le 28 Fév 2018
Modifié(e) : Stephen23
le 28 Fév 2018
IMin0 = reshape(IMin0,512,512,234);
for k = 1:size(IMin0,3)
fnm = sprintf('file_%d.dcm',k);
dicomwrite(IMin0(:,:,k),fnm)
end
See also:
1 commentaire
Prasad Gianluca Colombage Fernando
le 26 Nov 2018
Hi it's very good your code;do you how do I create a series DICOM after modifying it's HU ?
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur DICOM Format 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!