<html>
  <head>
    <style type="text/css">
      <!--
        body.hmmessage { font-size: 10pt; font-family: Tahoma }
        .hmmessage p { padding-top: 0px; margin-top: 0px; margin-right: 0px; padding-left: 0px; margin-left: 0px; padding-bottom: 0px; margin-bottom: 0px; padding-right: 0px }
      -->
    </style>
    
  </head>
  <body content="text/html; charset=ISO-8859-1" http-equiv="Content-Type" class="hmmessage" style="line-height: normal; margin-top: 4px; margin-right: 4px; margin-left: 4px; font-variant: normal; margin-bottom: 1px">
    <p style="margin-top: 0; margin-bottom: 0">
      <font face="Dialog" size="2">Hi Younes,</font>    </p>
<br>      
    <p style="margin-top: 0; margin-bottom: 0">
      <font face="Dialog" size="2">this is actually not a problem with the function. The </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>    </p>
    <p style="margin-top: 0; margin-bottom: 0">
      <font face="Dialog" size="2">skin_a  = imerode(skin, s);</font>    </p>
    <p style="margin-top: 0; margin-bottom: 0">
      <font face="Dialog" size="2">brain_a = imdilate(brain, s);</font>    </p>
    <p style="margin-top: 0; margin-bottom: 0">
      <font face="Dialog" size="2">skull = (brain_a & skin_a);</font>    </p>
    <p style="margin-top: 0; margin-bottom: 0">
      <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>    </p>
<br>      
    <p style="margin-top: 0; margin-bottom: 0">
      <font face="Dialog" size="2">Best regards and good luck,</font>    </p>
    <p style="margin-top: 0; margin-bottom: 0">
      <font face="Dialog" size="2">Gregor</font>    </p>
<br>      
    <p style="margin-top: 0; margin-bottom: 0">
      <br>
      <br>
      <font face="Dialog" STYLE="font-size: 10pt"><br>--  <BR>Dr. rer. nat. Gregor Volberg <gregor.volberg@psychologie.uni-regensburg.de> ( mailto:gregor.volberg@psychologie.uni-regensburg.de ) <BR>University of Regensburg <BR>Institute for Experimental Psychology <BR>93040 Regensburg, Germany <BR>Tel: +49 941 943 3862  <BR>Fax: +49 941 943 3233 <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 </a><BR><br><br></font>>>> Younes Zerouali <younes_zerouali@hotmail.com> 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 (http://fieldtrip.fcdonders.nl/tutorial/headmodel).<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>    </p>
    <pre class="code matlab"><p class="code matlab" style="margin-top: 0; margin-bottom: 0; white-space: pre">
<br>
</p>
</pre>
</body>
</html>