Applied Neurobiological Imaging, Dr. Katherine L. Narr

Our Protocols « back

Skull Stripping Using MultiTracer:

Software Tool Developed by Roger Woods, protocol written by Owen Phillips, August 2007. Email email ophillip at loni dot ucla dot edu with questions or comments.

This protocol is for skull stripping a brain while leaving out the cerebellum.

  1. If you do not have Multitracer.jar you can download it by clicking on the link.
  2. Open the brain volume of interest in MultiTracer. Tracing should be done on the axial view. You can increase the magnification of the image by entering a value of 1-8 in the Magnify by: box. For the coronal and sagittal views the image can be flipped vertically and magnified under the Orient tools.

    MultiTracer
  3. In order for the skull stripping to work you must designate two types of contours. The first contour must be your brain contour. For this tutorial the first contour will be called Brain and I will set it to a yellow color. The second contour will be called Non_Brain and it will be set to a red color. The naming system is arbitrary but the order in which you set the contours is critical. The skull stripping tool assumes the first contour in your list is Brain and it will fail if this order is not followed.

    Setting brain and non-brain contours
  4. To add a structure click on Contours and scroll down to Add contour. A box will pop up and you will be able to name your new structure.

    Name your structure
  5. To change the color of a contour Click Contour and scroll down to Structure Color. You can easily set the color of your structure to whatever you prefer. This step is not critical but it makes drawing the contours less confusing.

    Set the structure color
  6. Begin by drawing your contours inferior to the start of the temporal or occipital lobe on the axial view. Mark all structures before the brain starts as Non_Brain.

    Marking non-brain tissue
  7. Depending on the brain the Temporal or the occipital lobe will appear first. Once brain tissue appears mark it as brain. Mark all other structures as Non_Brain. The area around the eye orbits can be tricky to distinguish between brain and non brain. For these areas it is best to mark carefully around the brain as Non_Brain in order to cover all the intensity values. Also be sure to consult the coronal view as a reference. This region often produces the most problems with the final product. By marking every 5 slices and carefully marking all Brain and Non_Brain intensity values it will produce a better result.

    Be careful around the temporal lobe.
  8. Watch for the Temporal and Occipital lobes to appear in the view together. In some brains the frontal lobe may appear earlier. In either case continue to mark Brain and Non_Brain.

    Masking out the cerebellum Masking the frontal and temporal lobes
  9. Once the brainstem connects with the brain in the medial temporal region include the brainstem. Watch for the optic nerves and mark these as non brain. They are located just below the brainstem and they are bright white, typical of nerve tracts.

    Mark out the optic nerve tracts
  10. Once the Corpus Callosum appears and connects the right and left hemispheres mark the CSF anterior to the Corpus Callosum as Brain and the CSF posterior as Non_Brain.

    Marking CSF at the midline Marking CSF at the midline
  11. The superior aspects of the brain can cause trouble if the meninges are not carefully labeled as Non_Brain.

    Be sure to label the meninges as non-brain Label meninges as non-brain
  12. Mark the slice after the most superior aspect of the brain as Non_Brain and save your contour data.

    last slice
  13. A real world example using the Terminal:

    screen shot of the terminal
  14. To run the script using the command line, first connect to qsub.loni.ucla.edu, then run the following command:

    qsub -b y -q long.q java -Xmx3500M -jar /dir/TraceWalker.jar /(dir)/(image_file) /(dir)/(contour) /OUTPUT_DIR/(output_file) (Threshold value)

    I have found that thresholds values between the range of 30-50 work best. But you may have to run your data multiple times to find the threshold value that works best for you.
  15. You can also run locally by using the terminal on your computer. Download the TraceWalker.jar file first.
  16. Sample Command line in the terminal: Java -jar -Xmx1500M TraceWalker.jar in.img contour_file out.img 30
    If you get an error saying "could not reserve enough space for object heap, try giving the command more memory, such as -Xmx2000M.
  17. You can also run your processing using the LONI Pipeline. You can download the TraceWalker.pipe module for use in the pipeline by following the link.
  18. TraceWalker Pipeline module
  19. Your skull stripped brain should look something like this. To learn how to convert this to a mask, visit the protocols page for coverting analyze files to masks in BrainSuite.

    Skull stripped brain Skull stripped brain overlayed on whole volume

Some Useful tips:

A nice way to check how well your contours worked is to view the data in Brainsuite. If you are not familar with BrainSuite you can find more turorial information and downloads at brainsuite.usc.edu, or you can check out a few tutorials I have made under the Miscellaneous section of our protocols page.

  1. Load the original brain as your volume.
  2. Load your skull stripped brain as your Label.
  3. Check over the brain to insure you haven't cut out any brain tissue or that you still have meninges.

Notes: Some brains will require more contours then others depending on the areas of contrast. Occasionally the ventricles can be left out but this can be fixed by adding more contours or by changing the threshold value.

Contours on the ventricles

Common Questions:

Email: Owen Phillips at email ophillip at loni dot ucla dot edu if you have any questions or comments regarding this protocol.

Valid XHTML 1.0 Transitional

© 2014 BMAP. All rights reserved.