is there a C or C++ routine to read and write MRTrix format? I guess …yes !
Is it in the formats folder and an extra file like the nifti analyze and dicom stuff?
The background is that we have a small tool in VTK and C to make a small histogram analyze and would like to read in the *.mif files.
Just a word of warning though: it’ll probably be very difficult to extract the functionality from that file, given how tightly embedded it is within the whole MRtrix3 backend. My guess is you’ll need to copy the bits you need and modify them extensively to get them to work outside of MRtrix3…
The background is that we have a small tool in VTK and C to make a small histogram analyze and would like to read in the *.mif files.
The other option is to skip the .mif handling and generate the histogram using MRtrix3 instead? Currently that’s handled using mrstats -histogram; in the coming update there’s a new command mrhistogram that comes with a couple of additional options, and will also by default use a better heuristic for calculating an appropriate number of bins for the histogram.