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

ENH: Replace avscale with non-fsl tools #542

Merged
merged 4 commits into from Apr 7, 2023
Merged

Conversation

jbh1091
Copy link
Collaborator

@jbh1091 jbh1091 commented Apr 7, 2023

Changes proposed in this pull request

Related to Issue 482 (#482) but does not complete all changes required to close issue.

Changes almost entirely restricted to one file (interfaces/gradients.py), and mostly to the get_fsl_motion_params() function within that file. Previously the FSL tool avscale was used to extract motion parameters (rotation, translation, shear, and scale/zoom) from the affine transform produced by ANTs. This was replaced by a series of custom functions, an affine decompose from the transforms3d package, and a rotation vector conversion from scipy.

Documentation that should be reviewed

No documentation changes necessary. No changes to usage, and the CombineMotions class interfaces that calls this motion extraction function can be treated exactly the same as it was prior to the change.

avscale function for reading affine parameters replaced with custom functions, transforms3d, and scipy
@jbh1091 jbh1091 requested a review from mattcieslak April 7, 2023 15:43
@jbh1091 jbh1091 changed the title ENH: Replace avscale with non-fsl tools [WIP} ENH: Replace avscale with non-fsl tools Apr 7, 2023
@jbh1091 jbh1091 changed the title [WIP} ENH: Replace avscale with non-fsl tools ENH: Replace avscale with non-fsl tools Apr 7, 2023
@mattcieslak mattcieslak merged commit 89a18dd into master Apr 7, 2023
2 checks passed
@mattcieslak mattcieslak deleted the replace_avscale branch July 28, 2023 16:00
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