I’ve executed a fixel-based analysis and now I’m looking for the fiber density value per fixel (per subject) in order to test correlation with another metrics. AFAIK there is no mrtrix3 command that output this value. Nevertheless I’ve managed to track down where I believe this Fixel values are stored in memory (fod2fixel.cpp line 185) and output this values (to stdout) by adding the following code line:
std::cout << in[i].get_integral() << std::endl;
While this outputs what I guess is the apparent fibre density values. I would like to also get the position in the Image of these values. I’ve tried to console output the entire afd matrix but for some reason it fails on the
<< operator. Is there any proper way to read or output these values? or any suggestions on how to modify the code to do so?