Dear Torbern,
> Does anybody know how to get the pixel coordinates for all voxels within an
> activated cluster.
One easy way would be to position the cursor on the cluster you're
interested in (after displaying the results using the 'results' button),
and paste the following lines from spm_list.m at the matlab prompt:
[xyzmm,i] = spm_XYZreg('NearestXYZ',...
spm_results_ui('GetCoords'),SPM.XYZmm);
spm_results_ui('SetCoords',SPM.XYZmm(:,i));
A = spm_clusters(SPM.XYZ);
j = find(A == A(i));
XYZ = SPM.XYZ(:,j);
XYZmm = SPM.XYZmm(:,j);
The last two variables - XYZ and XYZmm - would contain the pixel and the
mm coordinates of all voxels in the current cluster. (Check the cursor to
see where it is after pasting the above, it may jump a bit, moving to
nearest suprathreshold voxel.)
With best wishes,
-k.
_____________________________________________________________________________
Kalina Christoff Email: [log in to unmask]
Office: Rm.478; (650) 725-0797
Department of Psychology Home: (650) 497-7170
Jordan Hall, Main Quad Fax: (650) 725-5699
Stanford, CA 94305-2130 http://www-psych.stanford.edu/~kalina/
_____________________________________________________________________________
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|