Dear All, I've modified John's snippet of code for transforming DARTEL templates and images to MNI space. The script now works for any file that begins with mwr* or wr*. This will allow it to read in and write out modulated or unmodulated images. A few details on the script: (1) In order to know, based on filename, whether or not the files have been normalized to MNI space, the output files will be mmwr* for modulated images in MNI space and wwr* for unmodulated images. (2) Modulation is determined by the input files. Only modulated inputs will be modulated. (3) The script should work across platforms. (4) The script copies the original files to the output file names and then modifies their header. (5) All you need is the mwr* or wr* files and the sn.mat file for going from DARTEL_template to the grey matter priors. -- Best Regards, Donald McLaren ===================== D.G. McLaren University of Wisconsin - Madison Neuroscience Training Program Tel: (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.