Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HBCD - external segmentation not finished case - Erik Lee #431

Merged
merged 1 commit into from
Jun 16, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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