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  

|
March 07, 2005 12:59PM
A command like

3dcalc -a dataset+orig -prefix fixed_dataset -expr 'a*or(1-equals(l,20),1-equals(k,11))'

will zero out voxels in sub-brick #20 and slice #11, for example. Here, 'l' (the lower case L) is the sub-brick index of a given voxel and 'k' is the slice-index.

The logical function 'or()' is equal to 1 if any of its arguments are nonzero, and is equal to 0 if all of its arguments are 0. In the example above:
-- 'equals(l,20)' is 1 for sub-brick #20 only
-- so '1-equals(l,20)' is 1 for all sub-bricks except #20
-- similarly, '1-equals(k,11)' is 1 for all slices except slice #11
Thus, the 'or()' expression is 0 only for voxels that are both from sub-brick #20 and from slice #11. Hope that is clear.

You can see voxel indexes instead of spatial coordinates in the AFNI controller window upper-left corner by selecting the Datamode->Misc->Voxel Coords menu item. This feature may help you ensure that you are selecting the correct indexes on which to operate.

bob cox

Subject Author Posted

Original --> Talairach map activation problem

Giovanni March 07, 2005 07:43AM

Re: Original --> Talairach map activation problem

Robert Cox March 07, 2005 08:35AM

Re: Original --> Talairach map activation problem

Giovanni March 07, 2005 10:43AM

Re: Original --> Talairach map activation problem

Robert Cox March 07, 2005 10:47AM

Re: Original --> Talairach map activation problem

Giovanni March 07, 2005 11:10AM

Re: Original --> Talairach map activation problem

Robert Cox March 07, 2005 12:59PM

Re: Original --> Talairach map activation problem

Giovanni March 08, 2005 06:10AM