<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Isaiah,<div><br></div><div>so you are having trouble using your own MRI, right? Have you tried the example-MRI that comes with the tutorial or the standard mri found in the templates-folder?</div><div>Depending on your MRI-machine you might not actually get any header info (which is stored in .hdr). For example, with the Simens Verio which I use here, I get DICOM files which contain a .hdr when read into field trip, however the .hdr field does not contain any information on the fiducials.</div><div><br></div><div>So, in order to realign your EEG-Electrodes and the MRI without the fiducials, you need to use the ft_electroderealign-function with cfg.method = interactive.</div><div>You also need to take some steps before that, i.e. you need to realign your MRI (ft_volumerealign), segment the MRI (ft_volumesegment) and create a head model (ft_prepare_headmodel).</div><div>From your plot I guess that you already have the head model and EEG-Electrodes, so you can use the code from the example script (<a href="http://fieldtrip.fcdonders.nl/example/align_eeg_electrode_positions_to_bem_headmodel">http://fieldtrip.fcdonders.nl/example/align_eeg_electrode_positions_to_bem_headmodel</a>):</div><div><br></div><div><pre class="code">% align interactive to surface of headmodel stored in vol.bnd
cfg = [];
cfg.method    = 'interactive';
cfg.elec      = elec;
cfg.headshape = vol.bnd(1);
elec_new = ft_electroderealign(cfg);</pre><div>Good luck, in case you're still having trouble I can also send you a copy of my personal script I use to create head models.</div><div><br></div><div>Julian</div><div><br></div><div>Am 20.08.2014 um 21:55 schrieb Isaiah C. Smith:</div><div><br class="Apple-interchange-newline"><blockquote type="cite">

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
Hello Julian,
<div><br>
</div>
<div>Thanks for the help. I am using MATLAB 2014a, and I am using my own mri, and locations. FieldTrip is up to date as well. The result is below.<span><Screen Shot 2014-08-20 at 12.48.14 PM.png></span></div>
<div>I am trying to move the electrodes slightly. </div>
<div><br>
</div>
<div>When I follow the steps on the website.</div>
<div>
<div>>> disp(mri.hdr.fiducial.mri)</div>
<div>Reference to non-existent field 'HDR'.</div>
<div><br>
</div>
<div>Isaiah</div>
<div>
<div>On Aug 19, 2014, at 1:26 AM, Julian Keil <<a href="mailto:julian.keil@gmail.com">julian.keil@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Hi Isaiah,
<div><br>
</div>
<div>could you check which FT-Version & Matlab-Version you are using?</div>
<div>I just checked it and it seems to work fine (on Matlab 2011b).</div>
<div>Also, could you post the output from calling "mri" and "mri.hdr"?</div>
<div><br>
</div>
<div>Good luck</div>
<div><br>
</div>
<div>Julian</div>
<div><br>
<div><span class="Apple-style-span" style="font-size: inherit; ">
</span><div style="font-size: inherit; ">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; font-size: 12px; ">
********************</div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<b>Dr. Julian Keil</b></div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<b><br>
</b></div>
AG Multisensorische Integration<br>
Psychiatrische Universitätsklinik<br>
der Charité im St. Hedwig-Krankenhaus<br>
Große Hamburger Straße 5-11, Raum E 307<br>
10115 Berlin</div><span class="Apple-style-span" style="font-size: inherit; ">
</span><div style="font-size: inherit; "><br>
Telefon: +49-30-2311-1879<br>
Fax:        +49-30-2311-2209 </div><span class="Apple-style-span" style="font-size: inherit; ">
</span><div style="font-size: inherit; "><a href="http://psy-ccm.charite.de/forschung/bildgebung/ag_multisensorische_integration">http://psy-ccm.charite.de/forschung/bildgebung/ag_multisensorische_integration</a></div><span class="Apple-style-span" style="font-size: inherit; ">
</span></div>
<br>
<div>
<div>Am 18.08.2014 um 23:52 schrieb Isaiah C. Smith:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
Hello,
<div><br>
</div>
<div>I am trying to realign the electrodes that I have, and I am going along with the cook book, but I keep getting an error.</div>
<div><br>
</div>
<div>
<pre class="code" style="padding: 0.5em; margin-top: 0px; margin-left: -10px; border: 1px dashed rgb(204, 204, 204); overflow: hidden; font-family: Consolas, 'Andale Mono', Menlo, Monaco, monospace; background-color: rgb(247, 249, 250); white-space: pre-wrap; width: 640px; text-align: justify;">mri = ft_read_mri('Subject01.mri');

disp(mri.hdr.fiducial.mri)
    nas: [87 60 116]
    lpa: [29 145 155]
    rpa: [144 142 158]</pre>
<div>
<div>Reference to non-existent field 'hdr'.</div>
</div>
</div>
<div><br>
</div>
<div>I cannot display. Am I missing a prior step?</div>
<div><br>
</div>
<div>Best,</div>
<div>Isaiah Smith</div>
</div>
_______________________________________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></blockquote>
</div>
<br>
</div>
</div>
_______________________________________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></blockquote>
</div>
<br>
</div>
</div>

_______________________________________________<br>fieldtrip mailing list<br><a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</blockquote></div><br></div></body></html>