1. Z map
I want to plot the Z-map with some threshold.
I converted 3D matrix data into the brain image using the below
A = 'C:\MATLAB7\NTOMO_O21_DS.IMG'
v = spm_vol(A)
v.fname
v.fname = 'D:\PhD\Brain(2005)\Overlay\HA2ic5.img'
spm_write_vol(v, HA2ic5)
Then using this image I want to plot Z-map to show the activity.
I used
P=spm_vol(spm_select(1,'D:\HA1ic1.img'));
oP=P;
oP.fname='D:\Zmap';
oP.descrip='t->z converted map';
t=spm_read_vols(P);
but I got an error
Error in ==> spm_read_vols at 30
if any(any(any(diff(cat(3,V.mat),1,3),3)))
Would anyone explain where am I wrong?
2. Overlay
I want to do overlay using two images.
I used Slice_overlay program.
One is structural the other one is blob.
If I change the values for the blob image, the overlay is changed.
Would anyone explain about the relationship between the image range values and
the values in the activation image to colormap for the overlay the image? If
I change the How do I interpret it?
3. And what difference Z-map and overlay to show the activity for the brain
image?
Thanks in advance.
|