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 CenterFile Exchange에서 DICOM Format에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by