Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Eamon Doyle
roiTool
Commits
ee1c78a4
Commit
ee1c78a4
authored
Jun 18, 2024
by
Eamon Doyle
Browse files
fixes for windows file paths
parent
c2a4eb37
Changes
1
Show whitespace changes
Inline
Side-by-side
mergeRoiTool.m
View file @
ee1c78a4
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment