-
-
Notifications
You must be signed in to change notification settings - Fork 381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Questions about buildtemplateparallel and antsMultivariateTemplateConstruction #806
Comments
The template update warp field is scaled by 0.25 (by default, the user can reduce it) and then applied four times, so the resulting warp vector at some point will have similar magnitude to the original version, but it will be slightly regularized because of linear interpolation at each of the four steps. I can't recall the original reference for doing this in template construction, but I think it might have been one of the SPM papers. |
We're actually determining the transform which updates the template shape to shift it closer to the estimated true mean of the cohort. In order to minimize deviations from a diffeomorphic transform, an exponentiated approach is used whereby the average displacement field transform is first multiplied by the gradient step (< 1.0, default = 0.25) and composed with itself multiple times. |
Thanks for the answer. Does it work if using "${ANTSPATH}/WarpImageMultiTransform ${dim} ${template} ${template} -i ${templatename}Affine${afftype} ${templatename}InverseWarp.nii.gz -R ${template}"." |
No, it's simply a coincidence.
No.
The "inverse transform" applied during the shape updated sense is not the same in the sense of the total transform found between template and subject. It's much more complicated than that which is why your proposed use of the inverse transform wouldn't work. I'd recommend reading the paper, specifically section 2.2.2. |
Hi Nick, I have read the paper but I still cannot figure out why we use the warp.mii.gz to cal the template shift. There are three programmes "buildtemplateparallel, antsMultivariateTemplateConstruction and antsMultivariateTemplateConstruction". So the last question is what is the difference between them? Olny the TRANSFORMATIONTYPE? Which one I can choose to start with? All of them can reach the SyN. Thanks a lot! |
|
Hi Nick, Sorry to bother you again. I am trying to use antsMultivariateTemplateConstruction2.sh to generate a template for my data. Could you tell me where I can improve for the parameters of this program? Or other codes and methods I can try to get the template? The code I used is as following: Thanks a lot! |
Have you looked at these examples? |
Yes, but I just read the sh files to confirm the transformation and parameters. |
You should actually run them, especially BrainSlices, as they're relevant to your problem. |
Dear ANTS experts,
I am reading the codes buildtemplateparallel and antsMultivariateTemplateConstruction.
What I cannot understand is why it used four times "${templatename}warp.nii.gz" when warping each template by the resulting transforms in the function "shapeupdatetotemplate ".
The code is "${ANTSPATH}/WarpImageMultiTransform ${dim} ${template} ${template} -i ${templatename}Affine${afftype} ${templatename}warp.nii.gz ${templatename}warp.nii.gz ${templatename}warp.nii.gz ${templatename}warp.nii.gz -R ${template}".
(buildtemplateparallel: line 414; antsMultivariateTemplateConstruction: line 262)
According to me, to calculate the inverse transform, we just need to use the "-i *Affine.mat *InverseWarp.nii.gz". Is it right? Why did it use the "*warp.nii.gz" so many times here?
Could anyone explain it? Or recommend a reference for this algorithm?
Any suggestions would be much appreciated.
Thanks!
The text was updated successfully, but these errors were encountered: