How to convert .mat file to .dcm format?

11 ビュー (過去 30 日間)
Reem Alahmadi
Reem Alahmadi 2021 年 7 月 10 日
コメント済み: ziwei fu 2022 年 3 月 7 日
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?

採用された回答

Simon Chan
Simon Chan 2021 年 7 月 10 日
file = dicomread(fileName);
imheader = dicominfo(fileName);
dicomwrite(file,'RP.newname.dcm',imheader, 'CreateMode', 'copy');
  7 件のコメント
Walter Roberson
Walter Roberson 2022 年 3 月 1 日
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 2022 年 3 月 7 日
My new RTplan cannot import into TPS with CT and RTStructure,did I miss some details?

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDICOM Format についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by