MRtrix3 / mrtrix3

MRtrix3 provides a set of tools to perform various advanced diffusion MRI analyses, including constrained spherical deconvolution (CSD), probabilistic tractography, track-density imaging, and apparent fibre density
http://www.mrtrix.org
Mozilla Public License 2.0
291 stars 179 forks source link

ENH mrinfo: Shell structure to JSON #2867

Open Lestropie opened 6 months ago

Lestropie commented 6 months ago

Just spawned seeing #2860 while thinking about stuff I'm working on in the domain of the Python scripts.

In order for Python code to be aware of the shelling structure that C++ binaries will fit to some input data series, we added command-line options to mrinfo to export:

However in many instances it's actually desirable to know all of this information. In that case, one might need to call mrinfo multiple times just to access the different pieces of information.

Perhaps better would be to have a command-line option that exports all information about the shelled structure to a JSON file for parsing.

This would naturally extend to the higher dimensionality of #2603.