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  

|
May 17, 2005 01:22PM
Hi,

I'm having a weird problem using 3dcalc to create ROIs.

Below are two command lines; one is supposed to create a spherical ROI of radius 4mm at voxel (20 20 69) and the other at (20 20 70).

cmd1:

3dcalc -a AA_spgr_oLIPS_ROI+orig -expr 'step(-a*(((x-20)*(x-20))+((y-20)*(y-20))+((z-69)*(z-69))-16))' -prefix test1

cmd2:
3dcalc -a AA_spgr_oLIPS_ROI+orig -expr 'step(-a*(((x-20)*(x-20))+((y-20)*(y-20))+((z-70)*(z-70))-16))' -prefix test2

Cmd1 above works fine. I get an output brik that is all zeros except within a sphere centered around (20 20 69). But cmd2 returns the following message and creates the output brik test2_orig but it does not contain the desired sphere at (20 20 70).
++ Symbol x using predefined value
++ Symbol y using predefined value
++ Symbol z using predefined value
** WARNING: output sub-brick 0 is all zeros!

What is going on here? Why does it not like the value of 70 or higher for the z coord?
Am I missing something basic here?
Help!

Thanks,
Shruti
Subject Author Posted

weird problem using 3dcalc to create ROI

Shruti Japee May 17, 2005 01:22PM

Re: weird problem using 3dcalc to create ROI

Robert Cox May 17, 2005 02:42PM

Re: weird problem using 3dcalc to create ROI

Shruti Japee May 17, 2005 03:56PM

Re: weird problem using 3dcalc to create ROI

Robert Cox May 17, 2005 04:57PM

Re: weird problem using 3dcalc to create ROI

Robert Cox May 18, 2005 09:37AM

Re: weird problem using 3dcalc to create ROI

Shruti Japee May 18, 2005 11:40AM

Re: weird problem using 3dcalc to create ROI

Robert Cox May 18, 2005 12:16PM

Re: weird problem using 3dcalc to create ROI

Vince Hradil May 18, 2005 12:23PM

Re: weird problem using 3dcalc to create ROI

Shruti Japee May 18, 2005 12:35PM