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  

|
August 28, 2015 04:25PM
Hi Linda,

Assuming you want to alter an ROI with a value
of 7 to one with values of 71 and 72 say, then
use 3dcalc. Ignoring the precise alteration,
consider:

3dcalc -a input+tlrc -expr "a*(1-equals(a,7)) + 71*equals(a,7)" ...

That would leave the dataset as it was, except
for changing any 7 to 71.

Then you could expand that 71 to be something
like: (71*ispositive(j-53)+72*ispositive(54-j)).
That would assume that A-P is the second axis
(specified using "j") and that slice 53 is your cutoff.

Alternately, use the y-coordinate. If it is RAI
orientation, consider:

(71*ispositive(y-5)+72*ispositive(5.1-y))

Anyway, give those a little try. Note that i,j,k
are pre-defined variables for the slice indices,
while x,y,z are those for coordinates.

- rick
Subject Author Posted

Changing Cluster Number in Mask

Danny September 25, 2014 05:29PM

Re: Changing Cluster Number in Mask

ptaylor September 25, 2014 07:34PM

Re: Changing Cluster Number in Mask

rick reynolds September 25, 2014 08:41PM

Re: Changing Cluster Number in Mask

Danny September 26, 2014 01:30PM

Re: Changing Cluster Number in Mask

rick reynolds September 26, 2014 04:27PM

Re: Changing Cluster Number in Mask

Danny September 26, 2014 04:54PM

Re: Changing Cluster Number in Mask

rick reynolds September 26, 2014 09:05PM

Re: Changing Cluster Number in Mask

Danny September 28, 2014 07:22PM

Re: Changing Cluster Number in Mask

heiding66 August 28, 2015 09:41AM

Re: Changing Cluster Number in Mask

rick reynolds August 28, 2015 04:25PM