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

Spherical coordinate systems handedness #95

Closed
Lestropie opened this issue May 10, 2024 · 0 comments
Closed

Spherical coordinate systems handedness #95

Lestropie opened this issue May 10, 2024 · 0 comments

Comments

@Lestropie
Copy link
Collaborator

Came across an interesting conundrum while writing an MRtrix3 command to convert between fibre orientations defined using different formats. I'm writing this command partly for verifying handling of metadata in MRtrix3, partly for confirming for this project the convention that is used in FSL (and confirming by being able to convert between FSL and MRtrix3 formats and having data from each display properly in the other).

Currently, the BEP draft states that azimuth angles should be computed relative to the first axis, using the right hand rule around the third axis. However the image axes may themselves define a left-handed rather than right-handed coordinate system; in which case I'm not sure if imposing a right-hand rule makes sense. I wonder if instead the angle should be defined in terms of cosine relative to the first axis, and sine relative to the second axis.

Lestropie added a commit that referenced this issue Jun 5, 2024
- FSL bedpostx command fibre orientations stored as spherical coordinates are confirmed to use the "bvec" reference frame.
- Enforcing azimuth angle to obey the right hand rule about the zenith axis would necessitate direct modification of image intensities from bedpostx outputs to store. Therefore it would be preferable to instead define the sign of the azimuth angle based on the direction of the second reference axis.
Closes #95.
Closes #94.
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