<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10pt"><div id="yiv2714510832"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10pt;"><div id="yiv2714510832yui_3_16_0_1_1404794052554_8720" style="" class="yiv2714510832" title="Previous message [left arrow]">Dear fieldtrip experts,<br class="yiv2714510832" style=""></div><div id="yiv2714510832yui_3_16_0_1_1404452127432_18125" style="" class="yiv2714510832">Im trying to do source localization for simulated EEG data, for this I followed the tutorial in page:</div><div class="yiv2714510832" id="yiv2714510832yui_3_16_0_1_1404452127432_18130" style="color:rgb(0, 0,
 0);font-size:13.3333px;font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;"><a rel="nofollow" id="yiv2714510832yui_3_16_0_1_1404452127432_18129" style="" class="yiv2714510832" target="_blank" href="http://fieldtrip.fcdonders.nl/tutorial/minimumnormestimate">http://fieldtrip.fcdonders.nl/tutorial/minimumnormestimate</a></div><div class="yiv2714510832" id="yiv2714510832yui_3_16_0_1_1404452127432_18131" style="color:rgb(0, 0,
 0);font-size:13.3333px;font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;"><br style="" class="yiv2714510832"></div>I was trying to use the mri image provided by fieldtrip (Subject01.mri) and EEG template (standard_1020.elc) in my work.<br style="" class="yiv2714510832">The
 mri image need to be re-aliened to the Talairach space for 
coregistration with EEG space. In the tutorial you use 
(ft_volumerealien) to do that using interactive method.<br style="" class="yiv2714510832">I have two questions:<br style="" class="yiv2714510832"><br style="" class="yiv2714510832">First,
 how can I do the coregistration using fixed coordinates of the 3 
fiducials (nasion, left pr, right pr), in other words how can I get the 
coordinates of the fiducials in both Talairach and EEG spaces to do the 
coregistration using the script only not manually.<br style="" class="yiv2714510832"><br style="" class="yiv2714510832">Second,
 I
 tried to use the mri image provided by the spm toolbox because its 
already aliened to Talairach space, but when I try to do segmentation I 
get error that coordinates field does not exist:<br style="" class="yiv2714510832"><br style="" class="yiv2714510832">??? Reference to non-existent field 'coordsys'.<br style="" class="yiv2714510832"><br style="" class="yiv2714510832">Error in ==> ft_volumesegment at 284<br style="" class="yiv2714510832">  original.coordsys  = mri.coordsys;<br style="" class="yiv2714510832"><br style="" class="yiv2714510832">Error in ==> segmentation_spm_mri at 24<br style="" class="yiv2714510832">seg           = ft_volumesegment(cfg, mrirs); <br style="" class="yiv2714510832"><br style="" class="yiv2714510832">I read the image using (ft_read_mri) function, I don't find the field specified for the coordinates:<br style="" class="yiv2714510832"><br style="" class="yiv2714510832">disp(mri)<br style="" class="yiv2714510832">          dim: [177 240 256]<br style=""
 class="yiv2714510832">      anatomy: [177x240x256 double]<br style="" class="yiv2714510832">          hdr: [1x1 struct]<br style="" class="yiv2714510832">    transform: [4x4 double]<br style="" class="yiv2714510832">         unit: 'mm'<br style="" class="yiv2714510832"><br style="" class="yiv2714510832">How can I solve this problem so I can use the mri image in SPM for further analysing in fieldtrip?<br style="" class="yiv2714510832"><br style="" class="yiv2714510832">Sorry for the long email I would be thankful for any help.<br style="" class="yiv2714510832">Regards<br style="" class="yiv2714510832">Rasha <div style="" class="yiv2714510832" id="yiv2714510832yui_3_16_0_1_1404794052554_9629"><br style="" id="yiv2714510832yui_3_16_0_6_1404794052554_5" class="yiv2714510832"></div><div style="" class="yiv2714510832"
 id="yiv2714510832yui_3_16_0_8_1404794052554_7"><br style="" id="yiv2714510832yui_3_16_0_8_1404794052554_5" class="yiv2714510832"></div></div></div></div></div></body></html>