How to convert .mat file to .dcm format?

11 visualizaciones (últimos 30 días)
Reem Alahmadi
Reem Alahmadi el 10 de Jul. de 2021
Comentada: ziwei fu el 7 de Mzo. de 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?

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre DICOM Format en Help Center y File Exchange.

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by