Dear Torben,
> Does anybody know how to get the pixel coordinates for all voxels
> within an activated cluster.
You could also use spm_regions in 'results' (VOI)
>> help spm_regions
VOI time-series extraction of adjusted data (local eigenimage analysis)
FORMAT [Y xY] = spm_regions(SPM,VOL,xX,xCon,xSDM,hReg);
SPM - structure containing SPM, distribution & filtering detals
VOL - structure containing details of volume analysed
xX - Design Matrix structure
xSDM - structure containing contents of SPM.mat file
xCon - Contrast definitions structure (see spm_FcUtil.m for details)
hReg - Handle of results section XYZ registry (see spm_results_ui.m)
Y - first eigenvariate of VOI
xY - structure with:
xY.name - name of VOI
xY.y - voxel-wise data (filtered and adjusted)
xY.u - first eigenvariate
xY.v - first eigenimage
xY.s - eigenimages
*** xY.XYZmm - Co-ordinates of voxels used within VOI ***
xY.xyz - centre of VOI (mm)
xY.radius - radius of VOI (mm)
xY.dstr - description of filtering & adjustment applied
Y and xY are also saved in VOI_*.mat in the SPM working directory
With best wishes - Karl
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|