Hi,
In my cluster_mask_zstat1.hdr file in the .feat directory, I have two
clusters: cluster 1 and cluster 2. Using the following command, I
generate a mask for cluster 2:
avwmaths cluster_mask_zstat1.hdr -mult -1 -thr -2 -mult -1 -thr 2
mask_cluster2
Appy this mask to thresh_zstat1.hdr:
avwmaths thresh_zstat1 -mas mask_cluster2 cluster2output.hdr
Then convert the cluster2output.hdr to a text file:
avw2ascii cluster2putput.hdr cluster2output.txt
I found the text file (cluster2output.txt) contails Z values for all
voxels in cluster 2, setting Z values to 0 for other voxels. My quesion
is: How can I get the coordinates (x, y, and z values for each voxel) of
all voxels in cluster 2? And the same thing for cluster 1?
Any suggestion for this purpose (finding coordinates (x, y, z) of all
voxels in a specific cluster) is greatly appreciated.
Thanks,
Wei
|