-
Notifications
You must be signed in to change notification settings - Fork 301
anat affine appears off for ds000114 between data and fmriprep output #624
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
Comments
To clarify, the conform step only modifies the affine if there are multiple images with different dimensions/zooms. This is a necessary precondition to merging, and the only way to avoid it is to have two images in the same space, or remove one of the T1w images before running FMRIPREP. If it would be useful to have the transform matrix from the inputs transform_affine = np.dot(linalg.inv(T1w.affine), T1w_preproc.target_affine)
|
@satra it seems that the conform step is unavoidable in multi T1w. Is there a need for providing affine matrices going from original to conformed images? |
@chrisfilo - perhaps fmriprep should be just annotated to indicate that T1_preproc and any of the raw T1s are not in alignment. i'm ok with not needing them. |
I believe this is only the case when there are multiple T1w images. The reports should provide this information now. |
Tagged this with |
As usual, @satra foresaw back on July 30 that we would find that many tools mess up with affines on October 8 and reported it here. Now, acknowledging that wrong affines were the source of #710 and #708 I think we can close this issue. #743 should fix this. However, since this is a really delicate issue, I'll make sure we double check on all affines we produce in #745 and we add the appropriate documentation. |
Just a quick point: This is about the T1w affines changing, not the alignment issues we've just been dealing with. #726 is a response to that, but we hadn't settled on an ultimate solution there. |
nipreps/niworkflows#202 (comment) I think this falls in category 1: when we are "moving" within the same space (in this case, identity transform), the output should have the same affine as the input (even if it is originally wrong). We probably want to make these policies very clear in the documentation, following what you were suggesting since the beginning. |
I might be misunderstanding the point you're making, but it sounds like you're saying the transform from input T1w images to the final T1w image should be the identity and that Satra was reporting an error. We can't always stay in the same space with multiple T1w images. If they're differently shaped or at all misaligned, constructing the template requires reslicing, rigid motion, or both. |
Oh right, this issue really popped up because we had several T1w images. You are right: this problem would not be covered by those two categories. I'll add this as a 3rd category. |
any reason why the T1 brainmask output from fmriprep has different affines from original T1 of the dataset? is this because of the conform step?
The text was updated successfully, but these errors were encountered: