matlab dicomWrite使用提示数据类型错误
Show older comments
使用dicomWrite复制一副dicom影像的元数据到另一个图像,提示:错误使用 dicom_add_attr>validate_data (第 122 行),属性 (0020,4000) 的数据类型错误。
代码如下:
info=dicomInfo('1.dcm');
%slice2是n*m的数组,与1.dcm相同
dicomWrite(slice2,'2.dcm',info,'CreateMode', 'copy')
该怎么解决,我看(0020,4000)是Image Comment,原先为空值,但是我赋予一些值也报相同错误,求解决,谢谢!
Answers (0)
Categories
Find more on 基于文件读写图像数据 in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!