problems making a template grid

Andreas Wollbrink a.wollbrink at UNI-MUENSTER.DE
Fri Apr 16 17:58:33 CEST 2010

Hi Ingrid,

Thanks for the info on the different MRI templates and their specific gain.

Have a nice weekend too,

On 04/16/10 17:51, Ingrid Nieuwenhuis wrote:
> Hi Andreas,
> 1, I added a comment on the wiki, thanks for your suggestion
> 2, 'T1.mnc' is a smoothed template based on multiple subjects, to deal with
> between subject variation in anatomy. This is needed for proper
> normalization. Template distributed with spm (in templates folder)
> 'single_subj_T1.mnc' is a single subject template, needed for proper
> segmentation. Also added this comment on the wiki.
> Have a nice weekend,
> Ingrid
> ------------------------------------
> Ingrid L.C. Nieuwenhuis
> PhD student
> Donders Institute for Brain, Cognition and Behaviour,
> Centre for Cognitive Neuroimaging
> Radboud University Nijmegen, The Netherlands
> Email: ingrid.nieuwenhuis at
> Tel: 0031 (0)24 - 36 10887
> -----Original Message-----
> From: FieldTrip discussion list [mailto:FIELDTRIP at NIC.SURFNET.NL] On Behalf
> Of Andreas Wollbrink
> Sent: Wednesday, April 14, 2010 10:21 AM
> Subject: [FIELDTRIP] problems making a template grid
> Hi all,
> I encountered some problems generating a template source grid as
> described in the fieldtrip example matlab script 'Create MNI-aligned
> grids in individual head-space':
> 1. in chapter 'Make the template_grid': Without defining a template
> image in the cfg structure prior to use ft_volumesegment the default
> setting cfg.template = '/home/common/matlab/spm2/templates/T1.mnc' is
> used. Since this file might not exist in this specific folder on a
> personal computer the function fails.
> After defining cfg.template I succeed in using the function.
> It might be helpful for others to add this comment to the example script.
> 2. My question at this point is: Should one use the individual template
> 'single_subj_T1.mnc' or the average template 'T1.mnc' to segment the
> template brain and construct a volume conduction model?
> 3. Furtheron the function 'prepare_dipole_grid' could not be found. This
> functions is placed in the private folder under fieldtrip. How can I
> automatically add this folder to my matlab path?
> Thanks,
> Andreas



   Andreas Wollbrink, Biomedical Engineer

   Institute for Biomagnetism and Biosignalanalysis       	
   Muenster University Hospital

   Malmedyweg 15        phone:   +49-(0)251-83-52546
   D-48149 Muenster     fax:     +49-(0)251-83-56874	
                        e-Mail: a.wollbrink at


The aim of this list is to facilitate the discussion between users of the FieldTrip  toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis. See also and

More information about the fieldtrip mailing list