Why do I receive missing attribute errors when using the DICOMANON function in Image Processing Toolbox 5.0.2 (R14SP2)?

조회 수: 3 (최근 30일)
When using the DICOMANON function in Image Processing Toolbox 5.0.2 (R14SP2):
dicomanon('image.dcm','anonimage.dcm','update',values);
I receive the following error:
Error Messages: ??? Error using ==> images\private\dicom_copy_IOD
Missing required attribute (0008,0016) "SOPClassUID"
Error in ==> dicomanon at 129
dicomwrite(X, filename_out, metadata, 'createmode', 'copy');

채택된 답변

MathWorks Support Team
MathWorks Support Team 2009년 6월 27일
This behavior occurs when the source DICOM image is missing the "SOPClassUID" attribute. The following code example demonstrates how to work around this issue:
imageInfo=dicominfo('image.dcm');
values.MediaStorageSOPClassUID=imageInfo.SOPClassUID;
dicomanon('image.dcm','anonimage.dcm','update',values);

추가 답변 (0개)

제품


릴리스

R14SP2

Community Treasure Hunt

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

Start Hunting!

Translated by