필터 지우기
필터 지우기

I am using R2014a release. The script stopped reading dicom files and gives error message: undefined function dicomparse in reading 'char'

조회 수: 4 (최근 30일)
I am using R2014a release. The script stopped reading dicom files and gives error message: undefined function dicomparse in reading 'char' I will apprefciate help in fixing the issue. It was working fine until last night and did not make any changes.. Thanks.
  댓글 수: 3
John
John 2014년 12월 20일
Can you give us some more information Which command exactly is failing? Dicomread()? Could you show us the exact script that's failing?
If you are using dicomread() try the following example use of the command from the MATLAB documentation on dicomread() to see if it is working:
[X, map] = dicomread('US-PAL-8-10x-echo.dcm'); %Uses dicomparse
It would be better if you could: 1. open the script for the function you are using that eventually calls dicomparse and set a breakpoint at that line in the editor. In dicomread() for example:
edit dicomread
Then set a breakpoint at line 180 (in 2014a this is where dicomread calls dicomparse
Then run whatever code you used that called dicomread() or any other function that calls dicomparse. The debugger should break at the line that calls dicomparse(). Then go to the console and type in :
fileDetails
and give us the screen dump. I think there is very little other way to figure out what's going wrong because dicomparse is a compiled function that MATLAB uses privately.
Rajendra
Rajendra 2014년 12월 20일
The [X, map] ... gives same error message:
undefined function 'dicomparse' for input arguments of type 'char'.
fileDetails output:
fileDetails =
name: '/home/raj/data/flanker/adhd/phasic/BlaineD...'
date: '23-Dec-2011 07:26:24'
bytes: 47662
isdir: 0
datenum: 7.3486e+05
Hope you will be able to figure out what is going on..

댓글을 달려면 로그인하십시오.

답변 (2개)

Image Analyst
Image Analyst 2014년 12월 20일
편집: Image Analyst 2014년 12월 20일
Do "which", like this:
>> which -all dicomparse
C:\Program Files\MATLAB\R2014b\toolbox\images\iptformats\private\dicomparse.mexw64 % Private to iptformats
Do you see that? If not, type "ver" and see what toolboxes you have installed. Or, run this code:
% Check that user has the Image Processing Toolbox installed.
hasIPT = license('test', 'image_toolbox');
if ~hasIPT
% User does not have the toolbox installed.
message = sprintf('Sorry, but you do not seem to have the Image Processing Toolbox.\nDo you want to try to continue anyway?');
reply = questdlg(message, 'Toolbox missing', 'Yes', 'No', 'Yes');
if strcmpi(reply, 'No')
% User said No, so exit.
return;
end
end
  댓글 수: 4
Image Analyst
Image Analyst 2014년 12월 20일
Well somehow it vanishes by the time you get to that line of code. Use the debugger and step into the functions and keep using "which" until you find where you get to the line of code when it causes it to say "undefined function dicomparse in reading 'char'"

댓글을 달려면 로그인하십시오.


Nancy
Nancy 2014년 12월 20일
This may sound silly, but if it was working last night, and isn't now but you haven't changed anything, have you tried closing and restarting MATLAB, or even closing everything and restarting your PC? I have had a couple of "errors" go away when I did that in situations like yours.

카테고리

Help CenterFile Exchange에서 Geometric Transformation and Image Registration에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by