<div dir="ltr">Hi Vitoria,<div><br></div><div>I forgot to add: the default in ft_sourceinterpolate is to *always* use 'nearest' interpolation if the data field is logical (as is the case for the mask; hence still the blocky masking). This is a reasonable setting I guess, but I don't see a reason why you shouldn't be able to use 'smudge' or 'sphere_avg' for a mask as well. You can circumvent this by doing</div>
<div><br></div><div>stat.mask = double(stat.mask);</div><div><br></div><div>before the interpolation step.</div><div><br></div><div>Best,</div><div>Eelke</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On 27 February 2014 16:44, Vitoria Piai <span dir="ltr"><<a href="mailto:v.piai.research@gmail.com" target="_blank">v.piai.research@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>Hi Elke and Arjen, <br>
<br>
Thanks a lot, it almost solved the problem (see figure). It looks
better than before anyways, so I guess I could just do the
finishing in Illustrator.<br>
(Or can you tell from this figure that something is going wrong
with the interpolation/projection?)<br>
<br>
Vitoria<br>
<br>
<img src="cid:part1.09070506.02070805@gmail.com" alt=""><div><div class="h5"><br>
<br>
On 27-2-2014 9:19, Eelke Spaak wrote:<br>
</div></div></div><div><div class="h5">
<blockquote type="cite">
<pre>Hi Vitória,
When you are calling ft_sourceinterpolate, you can call it with
different interpolation methods. I think the default is 'nearest',
which results in interpolated blocky figures. You can also specify
cfg.interpmethod = 'sphere_avg' or cfg.interpmethod = 'smudge', both
of which result in smoother interpolations.
Furthermore you can play around with the mask variable for plotting. I
guess you are now using the binary mask resulting from the output of
ft_sourcestatistics. You can also create a real-value mask based e.g.
on the statistical or relative values (which results in opacity being
ramped up according to effect size), and then apply the statistical
map to that. This would be something like the following:
tmp = int_stat.stat;
oldmask = int_stat.mask;
int_stat.mask = (tmp - min(tmp(:))) ./ (max(tmp(:)) - min(tmp(:))); %
set the new mask to range between 0 and 1
int_stat.mask(oldmask < 0.9) = 0; % mask out non-significant voxels
where int_stat is the result of ft_sourceinterpolate. Note that
because I used 'sphere_avg' interpolation in this case, the
interpolated mask will not be strictly binary anymore, hence the test
< 0.9, rather than == 1. (Also note that you should specify
cfg.opacitylim = [0 1] and cfg.opacitymap = 'rampup' when plotting
with a mask like the above.)
Does this do something like you want?
Best,
Eelke
On 26 February 2014 22:43, Stolk, A. (Arjen) <a href="mailto:a.stolk@fcdonders.ru.nl" target="_blank"><a.stolk@fcdonders.ru.nl></a> wrote:
</pre>
<blockquote type="cite">
<pre>Hi Vitoria,
I don't know whether you have done so already, but you could try and interpolate your source reconstructed activity on a high spatial resolution version of a brain (e.g. try the /template/anatomy/single_subj_T1_1mm.nii). Hope this helps,
Arjen
----- Oorspronkelijk bericht -----
</pre>
<blockquote type="cite">
<pre>Van: "Vitoria Piai" <a href="mailto:v.piai.research@gmail.com" target="_blank"><v.piai.research@gmail.com></a>
Aan: <a href="mailto:fieldtrip@donders.ru.nl" target="_blank">fieldtrip@donders.ru.nl</a>
Verzonden: Woensdag 26 februari 2014 19:03:55
Onderwerp: [FieldTrip] tips for nice sourceplot using 'ortho'
Hi all,
Does anyone have some tips for getting a nice sourceplot using the
'ortho' method?
I'm using functional data masked by the stats results. I see a lot of
cerebellum activity as well as deeper sources, so a surface plot is
very
likely to be fooling me. I'm getting a very ugly figure, though,
because
of all the squares (activity and masks) bleeding outside of the skull
outline.
Anyone with experience on what works well to make that look nicer
(eg.,
in Illustrator)?
Thanks, Vitoria
_______________________________________________
fieldtrip mailing list
<a href="mailto:fieldtrip@donders.ru.nl" target="_blank">fieldtrip@donders.ru.nl</a>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a>
</pre>
</blockquote>
<pre>--
Donders Institute for Brain, Cognition and Behaviour
Centre for Cognitive Neuroimaging
Radboud University Nijmegen
Email: <a href="mailto:a.stolk@donders.ru.nl" target="_blank">a.stolk@donders.ru.nl</a>
Phone: +31(0)243 68294
Web: <a href="http://www.arjenstolk.nl" target="_blank">www.arjenstolk.nl</a>
_______________________________________________
fieldtrip mailing list
<a href="mailto:fieldtrip@donders.ru.nl" target="_blank">fieldtrip@donders.ru.nl</a>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a>
</pre>
</blockquote>
<pre>_______________________________________________
fieldtrip mailing list
<a href="mailto:fieldtrip@donders.ru.nl" target="_blank">fieldtrip@donders.ru.nl</a>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a>
</pre>
</blockquote>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888"><pre cols="72">--
Vitória Piai
PhD Candidate
Donders Institute for Brain, Cognition and Behaviour
Centre for Cognition, Radboud University Nijmegen
Montessorilaan 3, B.02.30
6525 HR Nijmegen
The Netherlands
Email : <a href="mailto:V.piai@donders.ru.nl" target="_blank">V.piai@donders.ru.nl</a>
Phone : <a href="tel:%2B31%2024%203612635" value="+31243612635" target="_blank">+31 24 3612635</a>
<a href="http://www.vitoriapiai.com" target="_blank">www.vitoriapiai.com</a></pre>
</font></span></div>
<br>_______________________________________________<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" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br></blockquote></div><br></div>