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 25, 2016 05:21PM
Hello,

I'm trying to mask an image with a certain threshold. I understand that I can do this with 3dcalc in the following way:

Example: if I want to use a threshold value of 3, then 3dcalc -a file.nii -expr 'iszero(a-3)' -prefix maskimage

The output will be zeros where values do not equal 3 and 1s where they do

But now I want there to be several threshold values. For example, now I want it to report 1s if the value is 3 OR 6 OR 25 and zeros elsewhere. How do I do this? Is there an OR operand?

thanks!
Subject Author Posted

3dcalc

Amy Frithsen March 25, 2016 05:21PM

Re: 3dcalc

Peter Molfese March 25, 2016 05:25PM

Re: 3dcalc

Amy Frithsen March 25, 2016 05:35PM

Re: 3dcalc

Daniel Glen March 25, 2016 05:36PM

Re: 3dcalc

Amy Frithsen March 25, 2016 05:44PM