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  

|
September 06, 2005 09:19AM
If your dataset is well aligned, so that the nominal Left-to-Right axis is truly a good left-to-right direction, then 3dcalc could be used. Use AFNI to view the epi+orig dataset with the mask dataset M+orig as the overlay. Determine the x-coordinate that best separates the hemispheres (by placing the crosshairs at the inter-hemispheric fissure, then looking at the coordinates in the upper left corner of the AFNI controller). Suppose this value is x=3.5. Then the command below will create a mask from the Right hemisphere of M+orig:

3dcalc -a M+orig -dicom -expr 'ispositive(x-3.5)' -prefix Mright

Change 'ispositive' to 'isnegative' to get the Left hemisphere.

If the dataset is NOT well aligned, then you need to align it first. There are several ways to do that, depending on your ultimate goals. For example, you could transform a corresponding anatomical dataset to +acpc coordinates, then THAT dataset will be well aligned (by construction). Then create a mask in that coordinate system, then backtransform that mask to +orig coordinates using '3dfractionize -warp'.

Subject Author Posted

To create an hemisphere mask

Giovanni September 06, 2005 06:43AM

Re: To create an hemisphere mask

Robert Cox September 06, 2005 09:19AM