hdr=spm_vol('filename'); % reads the header info
img=spm_read_vols(hdr); % reads the data into a 4D matrix with time
being the 4th dimension.
On Friday, December 24, 2010, Ting Xu <[log in to unmask]> wrote:
>
>
> Dear al,
>
> I am a new subscriber in the mail list. I am still amateur in SPM. I want to read a file of *.nii format, which is 4D compressed format contains 210 volumes in one file. But I don't know which function can read this format. I will be very grateful if every could help me.
>
>
> Thank you in advance. Look for your response.
>
> Ting
>
> --
> Xu,Ting
> Postgraduate
> Neuropsychology and Applied Cognitive Neuroscience (NACN) Lab
> Institute of Psychology
> Chinese Academy of Sciences
> Beijing 100101
> China
>
>
>
--
Best Regards, Donald McLaren
=================
D.G. McLaren, Ph.D.
Postdoctoral Research Fellow, GRECC, Bedford VA
Research Fellow, Department of Neurology, Massachusetts General Hospital and
Harvard Medical School
Office: (773) 406-2464
=====================
This e-mail contains CONFIDENTIAL INFORMATION which may contain PROTECTED
HEALTHCARE INFORMATION and may also be LEGALLY PRIVILEGED and which is
intended only for the use of the individual or entity named above. If the
reader of the e-mail is not the intended recipient or the employee or agent
responsible for delivering it to the intended recipient, you are hereby
notified that you are in possession of confidential and privileged
information. Any unauthorized use, disclosure, copying or the taking of any
action in reliance on the contents of this information is strictly
prohibited and may be unlawful. If you have received this e-mail
unintentionally, please immediately notify the sender via telephone at (773)
406-2464 or email.
|