从金坛拷贝回来的MR数据在Sante Dicom Viewer和snap itk上可以打开,导入Monaco识别层数,但导入就报错。
和高老师探讨原因。
尝试用ImageJ打开,报错:
java.io.IOException
ImageJ connot open compressed DICOM images
Transfer Syntax UID = 1.2.840.10008.1.2.4.70
打开正常MR的dcm,没有Transfer Syntax UID标识,
搜索Transfer Syntax UID相关知识,
DICOM:Transfer Syntax传输语义之奇葩GE Private TS
的确文件大小为200多KB,小于正常的500KB。
尝试删除这个属性,
rootpath = 'C:\Users\MrXie\Desktop\施春华MR\施春华MR\20220814';
outrootpath = 'C:\Users\MrXie\Desktop\output2';
names = dir(rootpath);
for i =3:length(names)
name = names(i).name;
fullpath = fullfile(rootpath, name);
outfullpath = fullfile(outrootpath, name);
info = dicominfo(fullpath);
info = rmfield(info, 'TransferSyntaxUID');
img = dicomread(fullpath);
dicomwrite(img, outfullpath,info);
end
文件大小变为500KB,ImageJ打开正常,Monaco导入正常!