Error: Couldn't create temporary file to decode encapsulated data
5 次查看(过去 30 天)
显示 更早的评论
When I try to read a dicomfile using dicomread it gives the following errors:
Error using dicomread>decompressJpegFrame (line 981)
Couldn't create temporary file to decode encapsulated data.
Error in dicomread>processEncapsulatedPixels (line 896)
[X(:,:,:,outputFrame), prevWarning] = decodeFcn(metadata, frameStart, prevWarning);
Error in dicomread>newDicomread (line 214)
X = processEncapsulatedPixels(metadata, frames);
Error in dicomread (line 79)
[X, map, alpha, overlays] = newDicomread(msgname, frames);
I tried several things to stop the errors, but they didn't work. I reïnstalled MATLAB and the imageging processing toolbox. I also rebooted my laptop, that worked a little bit. Because it runs one time after I reboot my laptop, but when I run it another time it gives the errors I listed above. I already checked the Temp directory, but this was fine. I find it especially weird that it runs one time after I reboot my laptop, but after that it doesn't anymore.
I don't know if it is a problem with Matlab or with my laptop, but maybe you know the answer? I have windows 8.1 and Matlab2014b (but it also gave these errors with Matlab 2013b).
2 个评论
ali amroune
2020-7-21
Hi i have question about problem with my file dcm, when i open it on Matlab 2019 there are lot of caracters (don't understand ) , the file its full but there is no figure see it, can you help me, thanks .
detailsStruct = images.dicom.parseDICOMDIR('Pelvis1');
Error using images.dicom.parseDICOMDIR>convertMetadata (line 43)
Missing DirectorySequenceRecord (0004,1220) attribute.
Error in images.dicom.parseDICOMDIR (line 33)
dicomdir = convertMetadata(metadataObj);
>> detailsStruct = images.dicom.parseDICOMDIR('Pelvis1.dcm');
Error using images.dicom.parseDICOMDIR>convertMetadata (line 43)
Missing DirectorySequenceRecord (0004,1220) attribute.
Error in images.dicom.parseDICOMDIR (line 33)
dicomdir = convertMetadata(metadataObj);
>> detailsStruct = images.dicom.parseDICOMDIR('DICOMDIR');
>> fileFolder = fullfile(matlabroot,'toolbox','images','imdata');
>> montage(X,map)
Warning: No Image Acquisition adaptors found. To install Hardware Support Packages, use Add-On Explorer.
For more information on which support packages to install, click here.
Walter Roberson
2020-7-21
please create a new question for that.
Are you calling images.dicom.parseDICOMDIR yourself like it appears? Or did you get to that point by seeing what dicominfo crashed with?
回答(1 个)
Image Analyst
2014-12-27
You're best off calling tech support I think, since the error is buried deep within one of their functions.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!