How to convert .mat file to .dcm format?

11 vues (au cours des 30 derniers jours)
Reem Alahmadi
Reem Alahmadi le 10 Juil 2021
Commenté : ziwei fu le 7 Mar 2022
I have imported a RTplan file to Matlab in. dcm format, and I use both functions (dicomread & dicominfo) to work on this file. Now after processing this file in .mat format , I want to convert it to .dcm format , HOW to do it?

Réponse acceptée

Simon Chan
Simon Chan le 10 Juil 2021
file = dicomread(fileName);
imheader = dicominfo(fileName);
dicomwrite(file,'RP.newname.dcm',imheader, 'CreateMode', 'copy');
  7 commentaires
Walter Roberson
Walter Roberson le 1 Mar 2022
I do not know why the routine does not copy ObjectType; the documentation sort of implies that it should copy it.
You can pull it out of dicominfo and write it explicitly using the 'ObjectType' option
ziwei fu
ziwei fu le 7 Mar 2022
My new RTplan cannot import into TPS with CT and RTStructure,did I miss some details?

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

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

Produits


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by