Mean computed across non-zero voxels?

Hello all, I’m attempting to calculate the mean FDC/FD/FC value for significant voxels within a certain region, however, whenever I do so my values are always incredibly low. I’m thinking that this is because the command currently averages all values including values not in the significant region which would be 0. Therefore I want to ask: 1. Does mrtrix compute averages across only non-zero voxels? 2. If not, how can I get around this? I’ve been unable to figure out how to do it via NaN and I don’t think current commands can obtain an average value of only non 0 values.

Thank you so much!!!

Hi Ivan,
Check out the -ignorezero option in mrstats :slight_smile:

Cheers,
Arkiev