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  

|
February 19, 2004 11:08AM
Okay Ziad, I'll bite...

So, if the centers are in the same orientation as the dataset,
then it should be not toooo painful to apply an expression like:

-expr "a*step((x-$xc)*(x-$xc)+(y-$yc)*(y-$yc)+(z-$zc)*(z-$zc)-$r_squared)"

Here the center is stored in the variables, xc, yc and zc, and
then there is r_squared.

If you want to do multiple spheres per dataset, it might be good
to start with a zero'd dataset, and iteratively add to it. Init
dataset "source+orig" to zeros, and repeat the above only using
'-expr "a+step(...)"' instead of "a*step". Maybe it would be even
better to use "step(a+step(...))" to handle overlapping spheres.

Ahhh, the fun to be had...

- rick

Subject Author Posted

automatic ROI creation

Shruti February 19, 2004 10:42AM

Re: automatic ROI creation

Ziad Saad February 19, 2004 10:48AM

Re: automatic ROI creation

rick reynolds February 19, 2004 11:08AM

Re: automatic ROI creation

Donald February 19, 2004 06:02PM

Re: automatic ROI creation

rick reynolds February 19, 2004 09:53PM

Re: automatic ROI creation

Shruti February 19, 2004 11:29AM

Re: automatic ROI creation

rick reynolds February 19, 2004 10:56AM

Re: automatic ROI creation

Robert Cox February 19, 2004 11:02AM