Sorry, the error message returned was: undefined function 'dicomparse' for input arguments of type 'char'.
I am using R2014a release. The script stopped reading dicom files and gives error message: undefined function dicomparse in reading 'char'
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
John
il 20 Dic 2014
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.
Risposte (2)
Image Analyst
il 20 Dic 2014
Modificato: Image Analyst
il 20 Dic 2014
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 Commenti
Image Analyst
il 20 Dic 2014
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
il 20 Dic 2014
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.
Vedere anche
Categorie
Scopri di più su Geometric Transformation and Image Registration in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!