dicomwrite to create RT DOSE DICOM file causes Warning: Attribute (0020,0010) has wrong amount of data.

조회 수: 6 (최근 30일)
Why does this warning issue? Is it important? How do I resolve it?
Relevant Code:
doseinfo = dicominfo('[file on a shared drive]\RT-Dose\[filename].dcm');
dosedist = double(squeeze(dicomread('[file on a shared drive]\RT-Dose\[filename].dcm')));
%%We write the resulting blurred dose to a new RTDOSE DICOM file.
blurredx = uint16(reshape(xdosecounter,[size(xdosecounter,1) ...
size(xdosecounter,2) 1 size(xdosecounter,3)]));
blurredy = uint16(reshape(ydosecounter,[size(ydosecounter,1) ...
size(ydosecounter,2) 1 size(ydosecounter,3)]));
blurredz = uint16(reshape(zdosecounter,[size(zdosecounter,1) ...
size(zdosecounter,2) 1 size(zdosecounter,3)]));
dicomwrite(blurredx,'blurreddosex.dcm',doseinfo,'CreateMode','copy');
dicomwrite(blurredy,'blurreddosey.dcm',doseinfo,'CreateMode','copy');
dicomwrite(blurredz,'blurreddosez.dcm',doseinfo,'CreateMode','copy');
This warning repeated three times:
Warning: Attribute (0020,0010) has wrong amount of data.
> In dicom_add_attr>validate_data (line 134)
In dicom_add_attr (line 103)
In dicom_convert_meta_to_attr (line 39)
In dicom_copy_IOD (line 49)
In dicomwrite>write_message (line 277)
In dicomwrite (line 208)
Checking the written DICOM dose file, its Study ID is the same as the original dose file (which we specified beforehand as a string of letters), so I do not understand the cause for the warning, or what the 'wrong' amount of data is.

채택된 답변

Daniel Bridges
Daniel Bridges 2017년 5월 5일
편집: Daniel Bridges 2017년 5월 5일
Attribute (0020,0010) is the Study ID. It appears to have a character maximum that MathWorks are warning us about.
A short StudyID does not trigger this error warning; for example:
dicomwrite(blurred,['C:\filepath\dose',num2str(indexnumbers(fileloop)),'.dcm'],doseinfo,...
'CreateMode','copy','StudyID',num2str(indexnumbers(fileloop)),'SeriesDescription','interfractional error');
However, a longer StudyID does trigger this warning:
'CreateMode','copy','StudyID','PTCOG2017BlurredResult','SeriesDescription',['revised blurring for Case ',num2str(indexnumbers(fileloop))])

추가 답변 (0개)

카테고리

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