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  

|
April 16, 2015 08:49AM
Hi Cesar,

Daniel's good suggestion aside, what decimals are
you seeing? Are they just things like 2.0000? If
so, that just suggests the input is (stored as)
float.

Also, there is no need for more than 1 3dcalc
command here. A zero volume is not necessary.
Also, there does not seem to be an index in the
name of the output. Consider:

3dcalc -LPI -a MNI152_T1_2009c+tlrc -prefix ROI_parcels_MNI.$iROI \
-expr "a+${iROI}*(step($sphereROI-(x-${xcor})*(x-${xcor})-(y-${ycor})*(y-${ycor})-(z-${zcor})*(z-${zcor})))"


Of course, Daniel's suggestion is a nice way to go.

- rick
Subject Author Posted

creating mask of spherical ROIs with integer values using 3dcalc

Cesar Caballero Gaudes April 15, 2015 07:09PM

Re: creating mask of spherical ROIs with integer values using 3dcalc

Daniel Glen April 16, 2015 12:21AM

Re: creating mask of spherical ROIs with integer values using 3dcalc

rick reynolds April 16, 2015 08:49AM