-
Notifications
You must be signed in to change notification settings - Fork 7
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 coordinates convention #96
Comments
My personal opinion is that it would be best to stick to one of these conventions. Hopefully, the one that the community already tends to use. DIPY tends to use the physics convention in ordering of arguments (e.g., here). What convention does mrtrix use? Do you know about any other software? |
MRtrix3 code reference Where a radius is included, MRtrix3 includes that as the third element, which doesn't seem to conform to any convention. It is probably not particularly consequential; I'm not sure if there is actually any code that uses non-unit spherical polar coordinates, and even if there were to be, it's likely to be entirely internal data handling and not involving any writes to disk. Dates back to 2014; no documentation in the commit message on how / why. @jdtournier any recollection? |
So the first two softwares we've looked at have opposing conventions. Admittedly for MRtrix3 we don't export fibre orientations using spherical coordinates; we use it for dense sampling sets, eg. A2SH conversions or non-negativity constraints. Nevertheless, given the clash at first port of call, would it be better to support multiple? I've been thinking a lot about conversion of software outputs to BIDS derivative compliance, and wanting the scope of manipulation of data to be minimal where possible. There's also the issue that one could equivalently use elevation rather than inclination. So the option space might look something like:
There may be other options I'm not immediately seeing. |
@arokem What's the scope of utilisation of spherical coordinates in dipy? What matters here is not what is used for any internal calculations, but specifically interactions with the file system. For MRtrix3, |
Currently the BEP enforces the mathematical convention of (radius, azimuth, inclination). But the physics convention of (radius, inclination, azimuth) is equally valid. Need to decide whether to enforce one, or use a metadata field to allow utilization of either.
The text was updated successfully, but these errors were encountered: