Error: Couldn't create temporary file to decode encapsulated data
5 views (last 30 days)
Show older comments
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 Comments
ali amroune
on 21 Jul 2020
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
on 21 Jul 2020
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?
Answers (1)
Image Analyst
on 27 Dec 2014
You're best off calling tech support I think, since the error is buried deep within one of their functions.
See Also
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!