<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Dear Marc,<div><br></div><div>It seems to me that there is an issue with the coordinate system in which your original MRI is expressed. This could be related to the order of the steps you take, so I would permute the order and see whether this makes any difference at all (for me it usually works fine as follows:)</div><div><br></div><div>First do a call to ft_volumerealign using your single subject's MRI. This step should give you the transformation matrix from voxel to headspace according to CTF's convention (which happens to be the same as 4d).</div><div>Then do a segmentation of the output of ft_volumerealign, but note that you should specify ctf.coordinates = 'ctf'.</div><div>Then you can proceed to create the single shell volume conductor model (after checking whether the segmentation worked fine with respect to the orientation etc of the resulting volumes; I believe there is some documentation about this on the website) and plot the results.</div><div><br></div><div>Hopefully this helps,</div><div><br></div><div>Best,</div><div><br></div><div>Jan-Mathijs</div><div><br><div><div>On May 6, 2010, at 8:38 PM, Marc Recasens wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hello,<br><div class="gmail_quote"><br>I'm new in Fieldtrip and I find myself needed of some help :)<br>I'm currently analysing some MEG data (4D-Neuroimaging, Magnes 2500WH) and trying to create a Single-Shell headmodel using a segmented mri.<br> . I've read all the documentation on FT website but I'm still stuck. The volume never fits in the correct position inside the sensor helmet.<br> <br>First of all, I create a segmented MRI using Analyse images (.img'), and the segmentation is performed using:<br>cfg.coordinates = 'spm';<br> cfg.template = 'C:\...\MATLAB\R2007a\toolbox\spm2\templates\T1.mnc';<br>segmentedmri = ft_volumesegment (cfg, mri);<br>segmentedmri.anatomy = mri.anatomy; <--- I use that for posterior volumerealign.<br> <br>Then, I do a volumerealign by selecting manually the fiducial points (Nas, Lpa, Rpa), as I actually don't have fiducials on the MRI scans.<br>cfg.method = 'realignfiducial';<br>cfg.fiducial.nas = Nas; <--- (I get this from headshape.fid)<br> cfg.fiducial.lpa = Lpa;<br>cfg.fiducial.rpa = Rpa;<br>segmented_r = ft_volumerealign (cfg, segmentedmri);<br><br><br>Finally I create a volume through the ft_prepare_singleshell (cfg, segmented_r) function and plot it.<br> I have the fiducials or head position coils and the scalp registered by means of a Polhemus digitizer..<br> Though the segment via ft_sourceplot (doing the: segment.avg.pow = segment.gray+...) looks right, the headmodelplot shows that the volume and the headshape don't fit.<br><br>Is there any possibility to realign the segmented mri according either to the headshape points either to the MEG fiducials? I'm afraid the answer is no in both cases (as the MRI and MEG coordinates are different). I tried to realign the segment interactively by selecting the positions where the coils in the MRI should be... but as the picture shows, it doesn't fit.<br> am I doing something wrong or skipping some important step?<br>Is it possible to transform MRI coordinate system to MEG-head coordinate system? Would it help?<br><br><br><span><singleshell.jpg></span><span><singleshell2.jpg></span><br> I attach a picture of what i've managed to do till now!<br><br><br><br>Thanks for all!!!<br><font color="#888888"></font></div><br><br clear="all"><br>-- <br>Marc Recasens<br>Tel.: +34 639 24 15 98<br><br><p>----------------------------------</p><p>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.</p><p> <a href="http://listserv.surfnet.nl/archives/fieldtrip.html">http://listserv.surfnet.nl/archives/fieldtrip.html</a></p><p> <a href="http://www.ru.nl/fcdonders/fieldtrip/">http://www.ru.nl/fcdonders/fieldtrip/</a></p> </blockquote></div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Dr. J.M. (Jan-Mathijs) Schoffelen </div><div>Donders Institute for Brain, Cognition and Behaviour, <br>Centre for Cognitive Neuroimaging,<br>Radboud University Nijmegen, The Netherlands</div><div><a href="mailto:J.Schoffelen@donders.ru.nl">J.Schoffelen@donders.ru.nl</a></div><div>Telephone: 0031-24-3668063</div></div></span> </div><br></div></body></html><p>----------------------------------</p>
<p>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.</p>
<p> http://listserv.surfnet.nl/archives/fieldtrip.html</p>
<p> http://www.ru.nl/fcdonders/fieldtrip/</p>