Print

Print


Darren,

Thank you so much for your advice. By replacing the file
write_hdr_raw.m, now reorienting works fine.
I do appreciate for your help.

Kiyotaka

2008/1/3, d gitelman <[log in to unmask]>:
> Hi
>
> I can confirm that this is a bug in the write_hdr_raw.m file located in the
> folder @nifti/private in the spm5 directory. The problem only arises when
> spm tries to write to a file's header without writing out a whole new image
> file (i.e., in the case of reorienting files). Unfortunately it trashes the
> image data in the process so you will have to recreate the files.
>
> The spm_authors are aware of the bug and will hopefully post an official fix
> soon.
>
> Until then I suggest reverting to the previous version of write_header_raw.m
> which I have attached to this email. Save the file as write_hdr_raw.m and
> put it in the directory noted above. (Make sure to backup the file you are
> replacing). This fix is only necessary if you have updated spm in the last
> week or so.
>
> Darren
>
>
> ----------
> Darren Gitelman, MD
> Department of Neurology
> Northwestern University
> voice:  (312) 908-8614
> fax:    (312) 908-5073
> page:   (312) 695-1849
> email: [log in to unmask]
> ----------
>

-- 
Kiyotaka Nemoto M.D.
Department of Psychiatry, Mitsukaido Kosei Hopsital
3721-2 Uchimoriya Joso Ibaraki 303-0043, Japan
E-mail: [log in to unmask]