Replies: 3 comments 2 replies
-
A couple things---this really isn't enough information to diagnose the problem. Ideally, we'd like to see the command call, simplified as much as possible, with perhaps sample data so we can reproduce the issue on our end. It looks like you want the inverse of the affine transform but you're coupling it with twice the warp field and I don't know of any situation where that makes sense. Second, buildtemplateparallel.sh and WarpImageMultiTransform have been deprecated for years by antsMultivariateTemplateConstruction.sh and antsApplyTransforms. Perhaps it would also help if you explained the context for using such outdated ANTs commands. |
Beta Was this translation helpful? Give feedback.
-
Okay, now it makes a bit more sense as to what you're trying to do. I would recommend that users not try to debug the internals of a script but rather, if the output doesn't match expectations, describe that overall problem first and we can provide guidance as to the next steps. In your case, one of the initial problems I see is that your reference MNI template has the skull intact whereas your pseudo images do not. That input discrepancy is going to cause issues even before you start trying to debug specific steps of the script. |
Beta Was this translation helpful? Give feedback.
-
Great. Glad it worked. |
Beta Was this translation helpful? Give feedback.
-
I'm having some strange behavior when trying to map a warped image into a reference space using the inversion of an affine transform. What's happening is the image is off center so only the bottom right corner is present:
The original warped image looks fine:
As well as the image for the reference space:
So I'm thinking the affine transformation txt file is the issue? But am not too familiar with it:
#Insight Transform File V1.0
#Transform 0
Transform: MatrixOffsetTransformBase_double_3_3
Parameters: 0.8680842247191992 -0.0024614585527550324 -0.03639305305885 -0.0021814667712567364 0.8536843868982914 0.15138631811676873 0.03651728762988701 -0.20307767161779464 0.6782687858457199 -118.91556333353063 -130.68804104204435 58.4924303108248
FixedParameters: -0.46588847698700003 18.922574229943738 4.746380733313081
Input command:
${ANTSPATH}/WarpImageMultiTransform 3 D1_templatewarp.nii.gz D1_templatewarp.nii.gz -i D1_templateAffine.txt -R D1_template.nii.gz
Does any of this look familiar to anyone? Could definitely use the help.
Beta Was this translation helpful? Give feedback.
All reactions