フィルターのクリア

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 Center および File ExchangeGeometric 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