Commit ee1c78a4 authored by Eamon Doyle's avatar Eamon Doyle
Browse files

fixes for windows file paths

parent c2a4eb37
...@@ -100,13 +100,13 @@ lungMatrix = handles.lungMatrix; ...@@ -100,13 +100,13 @@ lungMatrix = handles.lungMatrix;
lungStats = handles.lungStats; lungStats = handles.lungStats;
gitInfo = handles.gitInfo; gitInfo = handles.gitInfo;
savePath = [handles.path '/mergeLungROI']; savePath = [handles.path filesep 'mergeLungROI'];
fname = handles.curName; fname = handles.curName;
if exist(savePath,'dir') ~= 7 if exist(savePath,'dir') ~= 7
mkdir(savePath); mkdir(savePath);
end end
try try
save([savePath '/mergeLung-' fname '.mat'],'lungMatrix', 'lungStats','gitInfo'); save([savePath filesep 'mergeLung-' fname '.mat'],'lungMatrix', 'lungStats','gitInfo');
set(handles.checkbox_saved,'Value',1,'BackgroundColor','g'); set(handles.checkbox_saved,'Value',1,'BackgroundColor','g');
axes(handles.axes1); axes(handles.axes1);
%warn('here') %warn('here')
...@@ -210,7 +210,7 @@ files = dir(path); ...@@ -210,7 +210,7 @@ files = dir(path);
dcmlist = struct; dcmlist = struct;
setProgress(hObject, eventdata, handles,0,'Loading...'); setProgress(hObject, eventdata, handles,0,'Loading...');
for n=3:length(files); for n=3:length(files);
fp = [path '/' files(n).name]; fp = [path filesep files(n).name];
if ~files(n).isdir && isdicom(fp) && (isempty(strfind(files(n).name,'XX')) && isempty(strfind(files(n).name,'PS'))) if ~files(n).isdir && isdicom(fp) && (isempty(strfind(files(n).name,'XX')) && isempty(strfind(files(n).name,'PS')))
nfo=dicominfo(fp); nfo=dicominfo(fp);
dcmlist(end+1).path = fp; dcmlist(end+1).path = fp;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment