I used the commands dwi2tensor and subsequently tensor2metric in order to compute tensor components (the fa of the tensor and the mean diffusivity of the tensor) from dwi.mif files.
When I subsequently used the output from these operations for my next step of analysis (using SPM12 embedded in Matlab), I noticed that there are NaNs in the images (both in the fa and in the adc images) and this messes up the steps.
I am wondering whether there is an option to exclude NaNs right from the beginning because otherwise I have to tackle them at a later stage and it would seem very handy to be able to do that from the very start.
tensor2metric -fa - when specifying the option> adding a specification about excluding non-numerical values?
Maybe that is a bit of an unusual question, but I would be very curious to know if you can recommend a workaround this issue?
Thank you in advance for your advice on this.