Skip to content
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

FIX: Immediately fix headers of AFNI outputs #818

Merged
merged 2 commits into from
Nov 8, 2017

Conversation

effigies
Copy link
Member

@effigies effigies commented Nov 8, 2017

As noted in #743, AFNI doesn't believe in NIfTI headers. #807 introduced a bug by targeting an antsApplyTransform at an image with an AFNI-corrupted header.

Fortunately, every AFNI tool we use doesn't change the affine space, so we can overwrite the qform/sform with the original affine. This change adds/moves header correction to immediately after each AFNI process.

Copy link
Member

@oesteban oesteban left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sweet, thanks!

@effigies effigies merged commit 4869d07 into nipreps:master Nov 8, 2017
@effigies effigies deleted the fix/afni_shield branch November 8, 2017 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants