Skip to content

Commit

Permalink
Merge pull request #19 from tiborauer/devel
Browse files Browse the repository at this point in the history
DEBUG: secondlevel threshold without structural can find template
  • Loading branch information
tiborauer committed Jun 14, 2018
2 parents f2c639c + 710ef99 commit 8dd2f3e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions aa_modules/aamod_secondlevel_threshold.m
Expand Up @@ -78,9 +78,12 @@
end
end
else % Template
aas_log(aap,false,'WARNING: Structural cannot be loaded! Template will be used...');
aas_log(aap,false,'Structural cannot be loaded! Template will be used...');
tmpfile = aap.directory_conventions.T1template;
if ~exist(tmpfile,'file') && (tmpfile(1) ~= '/'), tmpfile = fullfile(fileparts(which('spm')),tmpfile); end
if tmpfile(1) ~= '/'
if exist(tmpfile,'file'), tmpfile = which(tmpfile);
else tmpfile = fullfile(fileparts(which('spm')),tmpfile); end
end
end

Vtemplate=spm_vol(tmpfile); if iscell(Vtemplate), Vtemplate = cell2mat(Vtemplate); end
Expand Down

0 comments on commit 8dd2f3e

Please sign in to comment.