Change DICOM Header without reading and writing the whole file

조회 수: 11 (최근 30일)
Lisann Lieb
Lisann Lieb 2018년 5월 15일
답변: JZ 2020년 4월 5일
Hello guys!
I'm having problems renaming my DICOM headers. I am able to read the headers (dicominfo()) and then change them to whatever I want. Then I want to save the DICOM file with the new header. At the moment im reading the file (dicomread()) and then save it with dicomwrite(). This works fine but unfortunatly it takes a lot of time to change the headers of a complete CT scan. Is there a faster way?
Since I am only changing the headers, not the file itself I would like to avoid reading the file ...
Thank you!
  댓글 수: 1
Lisann Lieb
Lisann Lieb 2018년 5월 15일
edit: I already tried movefile, which is fast. But this function doesn't include the header information

댓글을 달려면 로그인하십시오.

답변 (1개)

JZ
JZ 2020년 4월 5일
I'm not sure if this is suitable for your purpose but I have found https://www.mathworks.com/matlabcentral/fileexchange/29145-dicom-tags-read-and-write very useful for editing DICOM tags and writing to file.

카테고리

Help CenterFile Exchange에서 Read and Write Image Data from Files에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by