FBA: creating intersection fixel mask

Dear experts
I was wondering whether there is a way to create an overlapping fixel mask of 2 separate analyses?
Cheers,
Hamed

Hi Hamed,

To compute the intersection of 2 binary fixel masks, you can simply use mrcalc, as long as both masks are of course defined for the same set of fixels (i.e. have the same index.mif and directions.mif file). If you don’t have binary masks yet, you’d first get them from e.g. your FBA results by applying mrthreshold with the -abs option to the relevant FBA output (e.g. the p-value map). Then simply run mrcalc mask1.mif mask2.mif -min intersectionmask.mif to compute the intersection. Make sure the output ("intersectionmask.mif") also ends up in a folder with the same index.mif and directions.mif files (or copies of them). Similarly, if you’d be after the “union” mask (rather than the intersection), you can use mrcalc, but with the -max operator.

Cheers,
Thijs

4 Likes

Hi Thijs
Thanks. It was exactly what I was looking for.
Cheers,
Hamed

1 Like