Dear Pilar,
If you just want to see an spmT*img on a SPM window in
gray-scale and to know the t-value of each voxel, you have
only to start SPM, click DISPLAY button, and choose an
spmT*img file you like to see. Then You can know the t-value
of each voxel and its coordinates by just clicking the images.
If you further want to manipulate spmT*img files on the
matlab command window, the following commands will help.
When doing this, you should be clearly aware of the data
order (e.g. Right to Left, Anterior to Posterior, Inferior
to Superior).
Assume your spmT*img file is a 64*64*36 matrix whose file
name is spmT_0002.img, and you are going to read it as a
variable A.
fid = fopen('spmT_0002.img','r');
A = fread(fid,[64*64*36 1],'float');
fclose(fid);
A = reshape(A,[64 64 36]);
If you want to see the t-value of the voxel coordinates
(30,24,15), you just type
A(30,24,15)
in the command window.
With best regards,
Kota KATANODA
Pilar Salgado Pineda wrote:
> Dear SPMers,
>
>
>
> I would like to know wether it is possible to
> visualize the smpT*.img .... by means of matlab as a
> data matrix, this is to say, transofrming intensity
> data image to numeric matrix to be able to represent
> graphycally the values contained in each coordinate.
>
>
>
> Thank you
>
>
>
> Pilar
>
>
>
>
|