Skip to content

Commit

Permalink
Moved biasfieldcorrection and crop/reorient to begin of Lead-Pipeline.
Browse files Browse the repository at this point in the history
  • Loading branch information
andreashorn committed May 22, 2016
1 parent e1e402c commit ebd2c81
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
11 changes: 11 additions & 0 deletions ea_assignpretra.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,17 @@
if isempty(f)
ea_error(['No anatomy information found. Please put either ',options.prefs.rawpreniis{1},', ', options.prefs.rawpreniis{2},' or ', options.prefs.rawpreniis{3}, ' into subject folder.']);
end


if ~exist([directory,'.pp'],'file') % only do this once, small hidden flag .pp inside patient folder will show this has been done before.
for f=find(fexist)
% apply biasfieldcorrection and reorient/crop
ea_dcm2nii([directory,options.prefs.rawpreniis{f}]);
ea_bias_field_correction([directory,options.prefs.rawpreniis{f}])
end
fs=fopen([directory,'.pp'],'w');
end

options.prefs.prenii_unnormalized=options.prefs.rawpreniis{f(1)};
options.primarytemplate=ptemps{f(1)};

Expand Down
4 changes: 1 addition & 3 deletions ea_normalize_ants_multimodal.m
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@
bprfx='';
end

ea_dcm2nii([directory,options.prefs.prenii_unnormalized]);
ea_bias_field_correction([directory,options.prefs.prenii_unnormalized])


% T1
if uset1 && ~strcmp(options.primarytemplate,'_t1')
if exist([directory,options.prefs.prenii_unnormalized_t1],'file')
Expand Down

0 comments on commit ebd2c81

Please sign in to comment.