Dear all,
I tried to use spm_slice_vol to read just one slice of SPGR image, but cann't quite understand the
usage and format of this function. The SPGR is 256*256*120, and I tried to read the 10th slice (z
= 10).
What I typed:
V = spm_vol(spm_get);
A = 1 0 0 0;
0 1 0 0;
0 0 1 10;
0 0 0 1;
dim = [256 256];
hold = 0;
X = spm_slice_vol(V,A,dim,hold);
However, not only spm but matlab abnormally exited. (I tried on two mac machine and one linux,
the same destiny!)
And I don't know how to design the transformation matrix. For example, I want to get the N th
slice of the image, what should A be?
Thanks a million to anybody who can help me out!
Lily
|