Hi there,
Thanks for all your replies, I started easy .. Geds' suggestion made the
job :-)
However, whereas it works fine with .img. I receive an incompatible
dimensions error with .nii.
The dim is from an .img image: dim 1 0 0 .. I guess I should change that
for nii
I simply do the following
V = spm_read_vols(P)
do some computation to get Y from the bunch of images
Info = V(1)
then I change the name (with the .img extension now) and the description
and finally spm_write_vol(Info,Y)
Again, thanks guys
Cyril
|