Probably easiest to use the roi option in avwmaths:
avwmaths <mask_file> -roi 0 x 0 y 0 z 0 1 left_mask
where
x = half the number of voxels in the x-dimension
y = number of voxels in y
z = number of voxels in z
you can get these values from dim1-3 using avwhd <mask_file> if you don't
already know them.
This will give you one hemisphere's mask (if radiological convention, it'll
be left hemi)
To get right do
avwmaths <mask_file> -roi x x 0 y 0 z 0 1 right_mask
Hope that helps/.
Joe
-----------
Joseph T. Devlin, Ph. D.
FMRIB Centre, University of Oxford
Headley Way, Headington
Oxford, OX3 9DU, UK
Phone: +44-(0)1865-222-494
Fax: +44-(0)1865-222-494
Email: [log in to unmask]
|