<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div dir="ltr">Hi,</div><div dir="ltr">How about you remove the second input argument to ft_sourceplot? Leave only sourceint. </div><div dir="ltr">Tzvetan </div><div dir="ltr"><br><blockquote type="cite">Am 1/8/21 um 18:52 schrieb mirek wyczesany <m.wyczesany@uj.edu.pl>:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<p><font face="Arial">Hi all,</font></p>
<p><font face="Arial">I encountered unresolvable issue with piloting
sources onto the anatomy using ft_sourceinterpolate /
ft_sourceplot. I'm pretty sure that the sources are properly
estimated, with MRI, sourcemodel, headmodel and sensors aligned.
They can be correctly visualized using ft_plotmesh function;
moreover they nicely match with source estimation preformed in
other software package. However all our attempts to visualize
them onto brain anatomy failed.</font></p>
<p><font face="Arial">This basic code (below) is used. It results in
sources emitting rays reaching the edges of the image, far
beyond the boundaries of the head. These visualisation are even
intriguing, but I would really appreciate your help in fixing
it. Actually I'm stuck with this since 2020... Thank you...!<br>
A sample image with a distorted source is here: <br>
<a class="moz-txt-link-freetext" href="http://zpf.psychologia.uj.edu.pl/ft/ft_sourceplot.jpg">http://zpf.psychologia.uj.edu.pl/ft/ft_sourceplot.jpg</a><br>
</font></p>
<p><font face="Arial">%% <br>
</font></p>
<p><font face="Arial">cfg = [];<br>
cfg.parameter = 'pow';<br>
sourceInt = ft_sourceinterpolate(cfg, source , mri_itab_rars);<br>
<br>
cfg = [];<br>
cfg.method = 'ortho';<br>
cfg.funparameter = 'pow';<br>
ft_sourceplot(cfg, sourceInt, mri_itab_rars); <br>
</font></p>
<pre class="moz-signature" cols="72">--
Mirek Wyczesany
Psychophysiology Lab
Jagiellonian University
Kraków, PL </pre>
<span>_______________________________________________</span><br><span>fieldtrip mailing list</span><br><span>https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</span><br><span>https://doi.org/10.1371/journal.pcbi.1002202</span><br></div></blockquote></body></html>