dicomwrite to create RT DOSE DICOM file causes Warning: Attribute (0020,0010) has wrong amount of data.
이전 댓글 표시
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.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File 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!