Describe the bug
I'm not sure this is a bug, but wanted to make sure I'm understanding the algorithm correctly. In the shapeupdatetotemplate() function the affine transforms from the current iteration are averaged. The transforms from the Warp.nii.gz images are also averaged and multiplied by the gradient step. The averaged and gradient-step-multiplied warp is then transformed by the inverse of the average affine transform. Finally, the transformed and gradient-step-multiplied warp is applied along with the inverted average affine transform here: https://github.com/ANTsX/ANTs/blob/v2.3.1/Scripts/antsMultivariateTemplateConstruction2.sh#L384
Is it correct that this warp should be added to the transform stack four times? It is applied 4 times in both antsMultivariateTemplateConstruction.sh and antsMultivariateTemplateConstruction2.sh. Is this related to the gradient step size default being 0.25?
Describe the bug I'm not sure this is a bug, but wanted to make sure I'm understanding the algorithm correctly. In the
shapeupdatetotemplate()
function the affine transforms from the current iteration are averaged. The transforms from theWarp.nii.gz
images are also averaged and multiplied by the gradient step. The averaged and gradient-step-multiplied warp is then transformed by the inverse of the average affine transform. Finally, the transformed and gradient-step-multiplied warp is applied along with the inverted average affine transform here: https://github.com/ANTsX/ANTs/blob/v2.3.1/Scripts/antsMultivariateTemplateConstruction2.sh#L384Is it correct that this warp should be added to the transform stack four times? It is applied 4 times in both
antsMultivariateTemplateConstruction.sh
andantsMultivariateTemplateConstruction2.sh
. Is this related to the gradient step size default being 0.25?Thanks in advance!