How to convert .mat file to .dcm format?

11 Ansichten (letzte 30 Tage)
Reem Alahmadi
Reem Alahmadi am 10 Jul. 2021
Kommentiert: ziwei fu am 7 Mär. 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?

Akzeptierte Antwort

Simon Chan
Simon Chan am 10 Jul. 2021
file = dicomread(fileName);
imheader = dicominfo(fileName);
dicomwrite(file,'RP.newname.dcm',imheader, 'CreateMode', 'copy');
  7 Kommentare
Walter Roberson
Walter Roberson am 1 Mär. 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 am 7 Mär. 2022
My new RTplan cannot import into TPS with CT and RTStructure,did I miss some details?

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu DICOM Format finden Sie in Help Center und File Exchange

Produkte


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by