Get unique fixel masks by subtraction of two masks

Hi all,

I’ve got two fixel-masks thathave some fixels in common. Now I want to create a mask containing only unique fixels (i.e., fixels that are part of one mask, but not the other).

For this, I’ve tried subtracting the two masks using "mrcalc mask1.mif mask2.mif -subtract mask-difference.mif, but I already figured out that that’s resulting in what I need. Any suggestions?

Thanks!

I’m not sure I’ve necessarily got exactly what you’re after, but if I understand correctly, you want all fixels in mask 1 that are not also in mask 2? If so, then this ought to do the trick:

mrcalc mask1.mif mask2.mif -not -and mask1-unique.mif