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

Accessing header transformations #2

Open
Lestropie opened this issue May 22, 2024 · 0 comments
Open

Accessing header transformations #2

Lestropie opened this issue May 22, 2024 · 0 comments

Comments

@Lestropie
Copy link
Owner

Verification of some types of metadata necessitates knowledge of the header transform of a corresponding image. Image formats under evaluation are not just NIfTI, but also MRtrix formats.

Currently, the transformation is accessed using mrinfo <imagepath> -transform -config RealignTransform false. While I can be reasonably confident that this will be faithful to whatever is stored on disk for all supported formats, there is nevertheless always a risk in using a piece of software to verify its own operation. I've had multiple instances where I've ensured that I can export to some format and then load it again, only to discover that there was some problem with the intermediate data if interpreted by some other tool.

Perhaps the ideal solution would be to use nibabel. However AFAIK support for MRtrix image formats is still not present there. fslhd only supports NIfTI so does not cover all use cases.

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

No branches or pull requests

1 participant