Skip to content

Commit

Permalink
DEFAULT: modulate affine registration tolerance
Browse files Browse the repository at this point in the history
I have noticed that the initial affine registration does not properly align the template to some subject images, so that the following diffeo+affine starts in a sub-optimal alignment. Modulating the affine tolerance seems to solve this. It does increase runtime, but not by much, as if is only applied to the coarsest level of the algorithm.
  • Loading branch information
brudfors committed Mar 27, 2022
1 parent ad084d9 commit 1a4cc8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spm_mb_fit.m
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
% Finished rigid alignment?
% Note that for limited field of view templates, the objective
% function can increase as well as decrease.
if it0>12 && abs(oE-E/nvox(dat)) < sett.tol*2
if it0>12 && abs(oE-E/nvox(dat)) < sett.tol*1e-1*0.5
countdown = countdown - 1;
if countdown==0
break;
Expand Down

0 comments on commit 1a4cc8c

Please sign in to comment.