When I multiple a mask consisting of all 1's or zero's by a mask that contains values of 0, 2 or -2 I only get positive values out. This happens in voxels where a "-2" voxels clearly overlaps a "1" voxel in the other mask (i.e. the result is 1 * (-2) = 0 ).
Here's my 3dcalc line:
3dcalc \
-a bin.maskFxAxE+orig \
-b mask.func+orig \
-prefix mask.func2 \
-expr "a*b"
3dinfo on "mask.func2+orig" will show values ranging from 0 to 2.
Any ideas?
Thanks
PSFB