<div dir="ltr"><div><div><div><div><div><div><div>Dear all, <br><br></div>I have some trouble using the polhemus headshape to realign the structural mri of a participant. Following
an earlier post on this issue
(<a href="http://mailman.science.ru.nl/pipermail/fieldtrip/2013-April/006493.html">http://mailman.science.ru.nl/pipermail/fieldtrip/2013-April/006493.html</a>),
I use ft_volumerealign twice:<br></div><br>cfg = [];<br>cfg.method = 'interactive';<br>cfg.coordsys = 'ctf';<br>mri_realigned = ft_volumerealign(cfg,mri);<br><br></div>works fine, then: <br><br>cfg = [];<br>cfg.method = 'headshape'<br>cfg.coordsys = 'ctf';<br>cfg.headshape.headshape = hs;<br>mri_realigned2 = ft_volumerealign(cfg,mri_realigned);<br><br></div>after the message 'doing interactive realignment with headshape' I get the following error:<br>**************<br>Reference to non-existent field 'label'.<br><br>Error in ft_datatype_sens (line 136)<br>nchan = length(sens.label);<br><br>Error in ft_checkconfig (line 248)<br> cfg.elec = ft_datatype_sens(cfg.elec);<br><br>Error in ft_interactiverealign (line 68)<br>cfg.template = ft_checkconfig(cfg.template, 'renamed', {'vol', 'headmodel'});<br><br>Error in ft_volumerealign (line 586)<br> tmpcfg = ft_interactiverealign(tmpcfg);<br><div>**************<br><br></div><div>Reading the polhemus headshape was done with:<br></div>[hs]=ft_read_headshape('hs_S01.pos');<br>which looks fine when plotting it with <br>ft_plot_headshape(hs);<br><br></div><div>I am using the fieldtrip version at the Donders. <br></div><div>When using an older version, fieldtrip-20131231, no error occurs. <br></div><div><br></div>Any help very much appreciated!<br></div>Best, <br></div>Tobias<br></div>