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