<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style>
</head>
<body dir="ltr">
<div id="OWAFontStyleDivID" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p style="">Hello everyone,<br>
</p>
<p style=""><br>
</p>
<p style="">So with absolutely no luck with the other methods I was trying, I tried to just use template files as I dont actually have any real mri data at this point.<br>
</p>
<p style=""><br>
</p>
<p style="">I ran the following code to warp electrodes to the surface of the template standard_bem file.<br>
</p>
<p style="">I made sure that vol, timelock.elec and sourcemodel were all in centimetres.<br>
</p>
<p style=""><br>
</p>
<div style="">timelock.elec = ft_convert_units( timelock.elec, 'cm');<br>
</div>
<div style=""><span style="font-size: 12pt;">​</span><span style="font-size: 12pt;">cfg = [];</span><br>
</div>
<div style="">cfg.method = 'headshape';<br>
</div>
<div>cfg.headshape = vol.bnd( 1);</div>
<div style="">timelock.elec = ft_sensorrealign( cfg, timelock.elec);<br>
</div>
<p style=""><br>
</p>
<div>
<p style="">The attached is vol, sourcemodel and the electrodes plotted (from the following code)<br>
</p>
<p style=""><br>
</p>
<div>figure; hold on</div>
<div>ft_plot_vol( vol, 'edgecolor', 'none');</div>
<div>alpha 0.4</div>
<div>hatlas = ft_plot_mesh( sourcemodel.pos( sourcemodel.inside, :));</div>
<div>set( hatlas, 'Color', [ 0 1 0]);</div>
<div>hsens = ft_plot_sens( timelock.elec, 'style', 'sk');</div>
<div style="">set( hsens, 'Color', [ 1 0 0]);<br>
</div>
<div style=""><br>
</div>
<div style="">As they dont line up, Im wondering what I am doing wrong?<br>
</div>
<div style=""></div>
<div style="">​Tyler<br>
</div>
<p style=""><br>
</p>
<p style=""><br>
</p>
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-size:13px">*************************
<div style="font-family:Tahoma"><br>
</div>
<div><font face="Arial"><i>Tyler Grummett ( BBSc, BSc(Hons I))</i></font></div>
<div><font face="Arial"><i>PhD Candidate</i></font></div>
<div><font face="Arial"><i>Brain Signals Laboratory</i></font></div>
<div><font face="Arial"><i>Flinders University</i></font></div>
<div><font face="Arial"><i>Rm 5A301</i></font></div>
<div><font face="Arial"><i>Ext 66124</i></font></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>