Error: Couldn't create temporary file to decode encapsulated data

조회 수: 5 (최근 30일)
Martine
Martine 2014년 12월 27일
댓글: Walter Roberson 2020년 7월 21일
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
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
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
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 CenterFile 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!

Translated by