I am trying to create a program including different small applications to evaluate DICOM images. Within MatLab, everything works fine; in the standalone exe on Windows 7 an error occurs telling me
Error using ==> dicominfo > getFileDetails at 392File "filename.dcm" not found.Images:dicominfo:noFileOrMessagesFound
Here is an example of the code that seems to be processed thus far.
global pwdpwd=uigetdir('C:\','Choose folder');cd(pwd);d=dir;str={'App1.m','App2.m'};[s,v]=listdlg('PromptString','Chosse app','ListString',str);str=char(str(s));for k=1:size(str,1)if strfind(str(k,:),'App1.m')App1.mendend
The subprogram "App1.m" looks like this:
global pwdpwd=evalin('base','pwd');FileName=(uigetfile('pwd\*.dcm','Choose DICOM file'));info_FileName=dicominfo(FileName);Pic=dicomread(info_FileName);
What am I missing and/or doing wrong? I've tried to set the path variable "pwd" as global but that doesn't seem to solve the problem. Thanks
Best Answer