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  

|
December 22, 2004 01:54PM
One option would be to compute the weights as the reciprocal of the variance of the voxel time series -- those voxels that vary a lot (from whatever cause) will get relatively little weight. For example:

3dAutomask -prefix q_mask -dilate 5 epi+orig
3dTstat -stdev -prefix q_sigma epi+orig
3dcalc -prefix q_weight -datum float -a q_mask+orig -b q_sigma+orig -expr 'a/(b*b)'
/bin/rm -f q_mask+orig.* q_sigma+orig.*

Then use q_weight+orig'[0]' as the weight volume. You will want to make sure that you do NOT use the initial transient part of the epi+orig time series (if it has such a transient) in the 3dTstat calculation.

I tried this on one dataset only, just now. The results don't differ markedly from the standard weight, but then this dataset doesn't have the problem to which you allude. At least the concept isn't grotesquely wrong.
Subject Author Posted

Weighting in 3dvolreg

rob risinger December 22, 2004 01:15PM

Re: Weighting in 3dvolreg

Robert Cox December 22, 2004 01:54PM