<div dir="ltr">The best thing would be to compute a &quot;smooth&quot; enveolope around the outermost vertices and just take everything inside. I fear this is not as easy to get as it sounds ...<br><div class="gmail_extra">

Anyways, on closer inspection, the actual amount of vertices disjoint by th gaps is neglegible. I might not suffer enough to look into it.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Alex, have we ever thought about adding some set logic to labels? I&#39;m thinking of overloading the minus operator for example.<br>

</div><div class="gmail_extra"><div class="gmail_quote"><br class="">-D<br></div><div class="gmail_quote"><br></div><div class="gmail_quote">On Mon, Aug 18, 2014 at 5:47 PM, Alexandre Gramfort <span dir="ltr">&lt;<a href="mailto:alexandre.gramfort@telecom-paristech.fr" target="_blank">alexandre.gramfort@telecom-paristech.fr</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">hi,<br>
<br>
you could &quot;smooth&quot; the label (although we should have named it<br>
dilate). The current code in stc_to_label could maybe help.<br>
<br>
HTH<br>
Alex<br>
<div><div class="h5"><br>
<br>
On Sat, Aug 16, 2014 at 10:13 PM, Denis-Alexander Engemann<br>
&lt;<a href="mailto:denis.engemann@gmail.com">denis.engemann@gmail.com</a>&gt; wrote:<br>
&gt; Dear list,<br>
&gt;<br>
&gt; for a recent analysis I&#39;m assembling a big label (using operator overloading<br>
&gt; np.sum(labels)) based on the Brodmann PALS B12 parcelation.<br>
&gt; As a result, some gaps remain between adjacent labels.<br>
&gt; E.g. see: <a href="https://www.dropbox.com/s/rzzzcz1tv1k75si/label_check_lat.png" target="_blank">https://www.dropbox.com/s/rzzzcz1tv1k75si/label_check_lat.png</a><br>
&gt;<br>
&gt; I&#39;m wondering about the easisest way to fill these gaps (code-based).<br>
&gt;<br>
&gt; Best,<br>
&gt; Denis<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Mne_analysis mailing list<br>
&gt; <a href="mailto:Mne_analysis@nmr.mgh.harvard.edu">Mne_analysis@nmr.mgh.harvard.edu</a><br>
&gt; <a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a><br>
&gt;<br>
&gt;<br>
&gt; The information in this e-mail is intended only for the person to whom it is<br>
&gt; addressed. If you believe this e-mail was sent to you in error and the<br>
&gt; e-mail<br>
&gt; contains patient information, please contact the Partners Compliance<br>
&gt; HelpLine at<br>
&gt; <a href="http://www.partners.org/complianceline" target="_blank">http://www.partners.org/complianceline</a> . If the e-mail was sent to you in<br>
&gt; error<br>
&gt; but does not contain patient information, please contact the sender and<br>
&gt; properly<br>
&gt; dispose of the e-mail.<br>
&gt;<br>
_______________________________________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu">Mne_analysis@nmr.mgh.harvard.edu</a><br>
<a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a><br>
</blockquote></div><br></div></div>