AFNI Message Board

Dear AFNI users-

We are very pleased to announce that the new AFNI Message Board framework is up! Please join us at:

https://discuss.afni.nimh.nih.gov

Existing user accounts have been migrated, so returning users can login by requesting a password reset. New users can create accounts, as well, through a standard account creation process. Please note that these setup emails might initially go to spam folders (esp. for NIH users!), so please check those locations in the beginning.

The current Message Board discussion threads have been migrated to the new framework. The current Message Board will remain visible, but read-only, for a little while.

Sincerely, AFNI HQ

History of AFNI updates  

|
September 25, 2020 12:48PM
I would recommend doing something a little different:

3dcalc -a 'A' -b 'B' -expr '1*step(a-3)+2*step(b-3)' -prefix common_mask

In the result, voxels that have value '1' are A-only, voxels with value '2' are B-only, and voxels with value '3' are A-and-B-together. With this as overlay, you can see all 3 possibilities (plus 0 = neither) at the same time, in different colors. If you want then to see only value=3 voxels in the overlay, just set the threshold slider to 2.9 or something like that.

Using this binary encoding is a powerful tool to see different combinations of thresholded results at one time. If you had a condition C, you could add '+4*step(c-3)' and then have all 8 combinations of conditions above threshold encoded into values 0-7.
Subject Author Posted

Using 3dcalc to calculate common active voxels between two conditions

kbandrew September 24, 2020 09:25PM

Re: Using 3dcalc to calculate common active voxels between two conditions

RWCox September 25, 2020 12:48PM

Re: Using 3dcalc to calculate common active voxels between two conditions

kbandrew September 25, 2020 04:40PM

Re: Using 3dcalc to calculate common active voxels between two conditions

ptaylor September 28, 2020 01:22PM

Re: Using 3dcalc to calculate common active voxels between two conditions

kbandrew October 07, 2020 01:17AM