<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Dear Gregor and Younes,<div><br></div><div>We recently added functionaity to ft_volumesegment to actually compute the brainmask or scalp surface. Gregor is right in that until a few weeks ago, ft_volumesegment only returned the probabilistic maps for the grey whit and csf compartments. Nowadays, given the appropriate cfg, it can do much more (see the documentation on the wiki for the cfg-settings). For this of course you need an up-to-date version of FieldTrip!</div><div><br></div><div>Best wishes,</div><div><br></div><div>Jan-Mathijs</div><div><br></div><div><br></div><div><br><div><div>On May 17, 2011, at 8:18 AM, Gregor Volberg wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><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: 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; font-size: medium; "><div content="text/html; charset=ISO-8859-1" http-equiv="Content-Type" class="hmmessage" style="font-size: 10pt; font-family: Tahoma; line-height: normal; margin-top: 4px; margin-right: 4px; margin-left: 4px; font-variant: normal; margin-bottom: 1px; "><div style="padding-top: 0px; margin-top: 0px; margin-right: 0px; padding-left: 0px; margin-left: 0px; padding-bottom: 0px; margin-bottom: 0px; padding-right: 0px; "><font face="Dialog" size="2">Hi Younes,</font></div><br><div style="padding-top: 0px; margin-top: 0px; margin-right: 0px; padding-left: 0px; margin-left: 0px; padding-bottom: 0px; margin-bottom: 0px; padding-right: 0px; "><font face="Dialog" size="2">this is actually not a problem with the function. The<span class="Apple-converted-space"> </span></font>"ft_volumesegment"<font face="Dialog" size="2"> will only return segmentations of the anatomical mri with respect to three tissue types: grey matter, white matter, and csf. You can use gray and white matter segmentations to construct your brain compartement by typing e. g. "brain = (seg.gray>0.5 | seg.white>0.5);" as given in the tutorial. In order to get skull and skin compartements, you need your original mri.anatomy which holds the image intensity on a black-to-white scale. You can threshold the white values to segment the head from the background, and this is then your skin compartement (e. g., "skin = (mri.anatomy>300);" as shown in the tutorial). The skull compartement is the oversection of the skin compartement and the brain compartement after you blew up those compartements a bit,</font></div><div style="padding-top: 0px; margin-top: 0px; margin-right: 0px; padding-left: 0px; margin-left: 0px; padding-bottom: 0px; margin-bottom: 0px; padding-right: 0px; "><font face="Dialog" size="2">skin_a  = imerode(skin, s);</font></div><div style="padding-top: 0px; margin-top: 0px; margin-right: 0px; padding-left: 0px; margin-left: 0px; padding-bottom: 0px; margin-bottom: 0px; padding-right: 0px; "><font face="Dialog" size="2">brain_a = imdilate(brain, s);</font></div><div style="padding-top: 0px; margin-top: 0px; margin-right: 0px; padding-left: 0px; margin-left: 0px; padding-bottom: 0px; margin-bottom: 0px; padding-right: 0px; "><font face="Dialog" size="2">skull = (brain_a & skin_a);</font></div><div style="padding-top: 0px; margin-top: 0px; margin-right: 0px; padding-left: 0px; margin-left: 0px; padding-bottom: 0px; margin-bottom: 0px; padding-right: 0px; "><font face="Dialog" size="2">Especially the construction of the skin is a lot of work, as you need the wholes in the anatomical mri (eyes, ear, inhomogeneities) by hand.</font></div><br><div style="padding-top: 0px; margin-top: 0px; margin-right: 0px; padding-left: 0px; margin-left: 0px; padding-bottom: 0px; margin-bottom: 0px; padding-right: 0px; "><font face="Dialog" size="2">Best regards and good luck,</font></div><div style="padding-top: 0px; margin-top: 0px; margin-right: 0px; padding-left: 0px; margin-left: 0px; padding-bottom: 0px; margin-bottom: 0px; padding-right: 0px; "><font face="Dialog" size="2">Gregor</font></div><br><div style="padding-top: 0px; margin-top: 0px; margin-right: 0px; padding-left: 0px; margin-left: 0px; padding-bottom: 0px; margin-bottom: 0px; padding-right: 0px; "><br><br><font face="Dialog" style="font-size: 10pt; "><br>--<span class="Apple-converted-space"> </span><br>Dr. rer. nat. Gregor Volberg <<a href="mailto:gregor.volberg@psychologie.uni-regensburg.de">gregor.volberg@psychologie.uni-regensburg.de</a>> (<span class="Apple-converted-space"> </span><a href="mailto:gregor.volberg@psychologie.uni-regensburg.de">mailto:gregor.volberg@psychologie.uni-regensburg.de</a><span class="Apple-converted-space"> </span>)<span class="Apple-converted-space"> </span><br>University of Regensburg<span class="Apple-converted-space"> </span><br>Institute for Experimental Psychology<span class="Apple-converted-space"> </span><br>93040 Regensburg, Germany<span class="Apple-converted-space"> </span><br>Tel: +49 941 943 3862<span class="Apple-converted-space"> </span><br>Fax: +49 941 943 3233<span class="Apple-converted-space"> </span><br><a href="http://www.psychologie.uni-regensburg.de/Greenlee/team/volberg/volberg.html">http://www.psychologie.uni-regensburg.de/Greenlee/team/volberg/volberg.html<span class="Apple-converted-space"> </span></a><br><br><br></font>>>> Younes Zerouali <<a href="mailto:younes_zerouali@hotmail.com">younes_zerouali@hotmail.com</a>> 5/17/2011 12:25 AM >>><br>Hi all,<br><br>I'm trying to segment head anatomical surfaces (scalp, skull) using the mri scan from patient Colin27 (MNI, Montreal) following the steps described in the tutorial (<a href="http://fieldtrip.fcdonders.nl/tutorial/headmodel">http://fieldtrip.fcdonders.nl/tutorial/headmodel</a>).<br>My problem is that the function "ft_volumesegment" doesn't return all the variables that are mentionned in the tutorial. For example, there is no field named "skull" or "scalp" in the argument returned by this function. Anyone had this problem before?<br><br>Best,<br><br><br>Younes<br></div><pre class="code matlab"><div style="padding-top: 0px; margin-top: 0px; margin-right: 0px; padding-left: 0px; margin-left: 0px; padding-bottom: 0px; margin-bottom: 0px; padding-right: 0px; white-space: pre; ">
<br>
</div>
</pre>_______________________________________________<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></span></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-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; font-size: medium; "><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-size: medium; 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>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-3614793</div></div></span></div></span> </div><br></div></body></html>