<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Isaiah,<div><br></div><div>Image segmentation algorithms work by thresholding an image (which has optionally been subjected to a sequence of image processing steps) at a sensible threshold, creating a binary image (i.e. consisting only of 0 and 1s). Then, in order to generate a surface description of e.g. the scalp, a triangulation is created that describes the boundary from 0 to 1, assuming the voxels with a value of 1 to lie within a single compartment. In your scalp mesh, the ‘horns’ are most likely caused by voxels with a supra threshold intensity value. After thresholding, the binary volume consists of multiple disconnected ‘blobs’, and the triangulation algorithm connects the points at the boundaries of these individual islands.  Thus, in your case, the default image processing steps (which actually aim at generating a single compartment (by keeping the largest connected compartment, and throwing away the smaller islands) have failed. This may be caused by the fact that these islands lie at the edge of your image. If you don’t feel comfortable with editing the volumetric image yourself I suggest that you play with the cfg.scalpsmooth and cfg.scalpthreshold parameters prior to calling ft_volumesegment. I would start by increasing the scalpthreshold (the default value is 0.1, but you can try 0.3, or 0.5, or any value you fancy).</div><div>Finally, please note that everybody who spends his/her valuable time on answering questions on this discussion list is doing so on a voluntary basis. Be aware that multiple postings of the same question does not necessary enhance people’s inclination to answer, although I realize fully well that it may be frustrating if you are stuck.</div><div><br></div><div>Best wishes,</div><div>Jan-Mathijs</div><div><br></div><div>On Jul 15, 2014, at 12:47 AM, Isaiah C. Smith <<a href="mailto:Isaiah.C.Smith.17@dartmouth.edu">Isaiah.C.Smith.17@dartmouth.edu</a>> wrote:</div><div><div><br class="Apple-interchange-newline"><blockquote type="cite">

<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">

<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
Thanks Arjen, 
<div><br>
</div>
<div>I was able to bring up the source plot of the the scalp using:</div>
<div>
<div>>> cfg.funparameter=‘scalp';</div>
<div>>> ft_sourceplot(cfg,segmentedmri)</div>
<div>Results:</div>
<div><span><Screen Shot 2014-07-14 at 3.44.14 PM.png></span></div>
<div>Could you please explain how to create/adjust the inclusion threshold? Sorry, I am a little new to the fieldtrip functions.</div>
<div><br>
</div>
<div>Isaiah </div>
<div><br>
</div>
<div>
<div>On Jul 14, 2014, at 2:46 PM, Stolk, A. (Arjen) <<a href="mailto:a.stolk@fcdonders.ru.nl">a.stolk@fcdonders.ru.nl</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">
<div style="font-family: 'Times New Roman'; font-size: 12pt;">Hi Isaiah,<br>
<br>
It could be that your problem is caused by your structural scan containing voxels outside the head but with levels of intensity falling in the range of that attributed to, say, csf. One way to check is by plotting the respective segmented brain mask, e.g.<span class="Apple-converted-space"> </span><br>
<br>
mri.pow = seg.csf<br>
cfg.funparameter = 'pow'<br>
ft_sourceplot(cfg,mri)<br>
<br>
You could then try and manually include certain voxels by playing with the inclusion threshold (e.g. set seg.csf with voxelvalues smaller than .99 to 0). This would allow to work around that problem, unless those voxels have exactly the same intensity as csf.<br>
<br>
Hope this helps narrowing the origin of your problem,<br>
Arjen<br>
<br>
<br>
<br>
<hr id="zwchr">
<blockquote style="border-left-width: 2px; border-left-style: solid; border-left-color: rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">
<b>Van:<span class="Apple-converted-space"> </span></b>"Isaiah C. Smith" <<a href="mailto:Isaiah.C.Smith.17@dartmouth.edu">Isaiah.C.Smith.17@dartmouth.edu</a>><br>
<b>Aan:<span class="Apple-converted-space"> </span></b><a href="mailto:fieldtrip@science.ru.nl">fieldtrip@science.ru.nl</a><br>
<b>Verzonden:<span class="Apple-converted-space"> </span></b>Maandag 14 juli 2014 23:28:59<br>
<b>Onderwerp:<span class="Apple-converted-space"> </span></b>[FieldTrip] Editing Vertices of Scalp Manually or Automatically<br>
<br>
Hello Everyone,
<div><br>
</div>
<div>I am having a problem with noise appearing in my volume conduction model. There are a few horn-like images on the head, and a cluster of vertices in the area where a neck would normally appear but the MRI was only of the upper half of someone's head so
 it should not be appearing either. I am running into a wall when I try to edit manually because the data so large I cannot view it. Please, I have been trying to fix this for a while does anyone have any ideas on how to get rid of these extraneous points:
 whether manually or by shifting parameters in the segmentation process? Your help would be extremely helpful and greatly appreciated.</div>
<div><br>
</div>
<div>This is an image of the problem described.</div>
<div><span><Screen Shot 2014-07-14 at 2.21.48 PM.png></span></div>
<div><br>
</div>
<div>Kind Regards,</div>
<div><br>
</div>
<div>Isaiah</div>
<div><br>
</div>
<div>***************************</div>
<div>
<div style="font-family: Tahoma; font-size: 13px; background-color: rgb(255, 255, 255);">
<font face="Arial"><i>Isaiah Smith ( Dartmouth Undergraduate)</i></font></div>
<div style="font-family: Tahoma; font-size: 13px; background-color: rgb(255, 255, 255);">
<i style="font-family: Arial;">UCLA California NanoSystems Institute Summer Intern</i></div>
<div style="font-family: Tahoma; font-size: 13px; background-color: rgb(255, 255, 255);">
<i style="font-family: Arial;">University of California Los Angeles</i></div>
<div style="background-color: rgb(255, 255, 255);"><i><font face="Arial" size="2">Dr. Wentai Liu’s Biomimetics Lab</font></i></div>
<div style="font-family: Tahoma; font-size: 13px; background-color: rgb(255, 255, 255);">
<i style="font-family: Arial;">Rm 5311</i></div>
<div style="font-family: Tahoma; font-size: 13px; background-color: rgb(255, 255, 255);">
<br>
</div>
</div>
<div><br>
</div>
<div><br>
</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">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></blockquote>
<br>
<br>
<br>
--<span class="Apple-converted-space"> </span><br>
<div><span name="x"></span>Donders Institute for Brain, Cognition and Behaviour<br>
Centre for Cognitive Neuroimaging<br>
Radboud University Nijmegen<br>
<br>
Email:  <a href="mailto:a.stolk@donders.ru.nl">a.stolk@donders.ru.nl</a><br>
Phone:  +31(0)243 68294<br>
Web:    <a href="http://www.arjenstolk.nl/">www.arjenstolk.nl</a><span name="x"></span><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></div>
</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 apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px;"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-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; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-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; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-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; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-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; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-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; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; 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; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; 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; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica;  font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; 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>Jan-Mathijs Schoffelen, MD PhD </div><div><br></div><div>Donders Institute for Brain, Cognition and Behaviour, <br>Centre for Cognitive Neuroimaging,<br>Radboud University Nijmegen, The Netherlands</div><div><br></div><div>Max Planck Institute for Psycholinguistics,</div><div>Nijmegen, The Netherlands</div><div><br></div><div><a href="mailto:J.Schoffelen@donders.ru.nl">J.Schoffelen@donders.ru.nl</a></div><div>Telephone: +31-24-3614793</div><div><br></div><div><a href="http://www.hettaligebrein.nl">http://www.hettaligebrein.nl</a></div></div></span></div></span></div></span></div></span></div></span></div></span></div></span></div></span></span>
</div>
<br></div></body></html>