Skip to content

Commit

Permalink
Merge pull request #431 from HJZollner/develop
Browse files Browse the repository at this point in the history
HBCD - external segmentation not finished case - Erik Lee
  • Loading branch information
HJZollner authored Jun 16, 2022
2 parents c237b39 + 80f2f23 commit 8a532b2
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion utilities/RunOspreyJob.m
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,19 @@

if ~isempty(MRSCont.files_nii)
MRSCont = OspreyCoreg(MRSCont);
MRSCont = OspreySeg(MRSCont);
if ~isempty(MRSCont.files_seg)
seg = [num2str(~isempty(MRSCont.files_seg)) num2str(exist(MRSCont.files_seg{1}{1},'file'))];
else
seg = '00';
end
switch seg
case '00' %Do normal segmentation (No files_seg)
MRSCont = OspreySeg(MRSCont);
case '11' %files_seg are defined and finished.
MRSCont = OspreySeg(MRSCont);
otherwise % (10) files_seg are defined, but not finished yet. (Do nothing)
end

end

MRSCont = OspreyQuantify(MRSCont);
Expand Down

0 comments on commit 8a532b2

Please sign in to comment.