Dear friends,
please find attached my SPM Image Calculator "Plus" script that allows users to apply the image calculator functionality to multiple subjects.
It will request the i1, i2 etc. images from the user, add output file prefix and suffix (optionally), output directory etc. as the standard image calculator does. After specifying at least the first image i1, the user can press cancel to go on when i2... is requested. Additionally, as i2, i3, ... a single (atlas/mask) file may be selected to be applied to all (i1) subject files.
I tested it under SPM8 and SPM12, although it opens the batch GUI only in the SPM8 version, and directly runs them under SPM12. (The call to cfg_ui does not load previously defined jobs any more?)
Feel free to modify the script if necessary.
Best regards,
Martin
--
Martin Dyrba, Ph.D.
Postdoctoral researcher
Clinical dementia research group
Analysis of complex diagnostic data
German Center for Neurodegenerative Diseases (DZNE)
Site Rostock/ Greifswald
c/o Zentrum für Nervenheilkunde
Gehlsheimer Straße 20
18147 Rostock
Germany
|