From 1a4cc8cb2e7ea7d5ca7bf955240bfc2e6a8df668 Mon Sep 17 00:00:00 2001 From: Mikael Brudfors Date: Sun, 27 Mar 2022 17:38:37 +0100 Subject: [PATCH] DEFAULT: modulate affine registration tolerance 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. --- spm_mb_fit.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spm_mb_fit.m b/spm_mb_fit.m index 5aa585b..38847a1 100644 --- a/spm_mb_fit.m +++ b/spm_mb_fit.m @@ -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;