Difference between revisions of "RobustStatisticsSegmentation"

From NAMIC Wiki
Jump to: navigation, search
Line 2: Line 2:
 
= Robust Statistics Based Segmentation =
 
= Robust Statistics Based Segmentation =
  
== Description ==
 
  
Given a few initial seeds, we use the robust statistics to construct a feature image out of the original image, and the image segmentation is carried out in the feature image. To do so, we first compute the certain robust statistics, such as the median absolute deviation(MAD) and the interquartile range (IQ), from the seed points. Further, a multi-dimentional probability distribution function is computed from the feature seeds. At each point in the image, the active contour is driven by the probabilities of this pixel belonging to each category indicated by the seeds.
+
{|
 +
|[[Image:RssPanel.png|thumb|280px|RSS module panel]]
 +
|[[Image:RSS_MultiObjSeg1.png|thumb|400px|RSS result for abdominal CT image]]
 +
|[[Image:RssVentricle.png|thumb|400px|RSS result for Brain MR image]]
 +
|}
  
==How to get the module==
+
== General Information ==
===Slicer 3.6===
+
===Module Type & Category===
RSS is part of the download, listed under the category "Segmentation"
 
  
===Slicer 3.5===
+
Type: CLI
# start nightly built Slicer 3.5 (Most recently tested is Slicer3-3.5-alpha-2010-01-11-linux-x86_64)
+
 
# open View->Extension Manager
+
Category: Segmentation
# check "Find & Install", click "Next"
+
 
# in the list, select "RobustStatisticsSegmentor", then "Download & Install", and "Next"
+
===Authors, Collaborators & Contact===
# Slicer will ask to restart, confirm.
+
* Yi Gao (Author): Georgia Tech
# after restarts, the module is in Module category: "Segmentation-->Robust Statistics Segmentation"
+
* Allen Tannenbaum (Author): Georgia Tech
 +
* Ron Kikinis (Author): BWH
 +
* Contact: Yi Gao, yi.gao@gatech.edu
 +
 
 +
===Module Description===
 +
This module is a general purpose segmenter. The target object is initialized by a label map. An active contour model then evolves to extract the desired boundary of the object.
  
 
== Usage ==
 
== Usage ==
 
 
[[Image:RobustStatisticsSegmentation_usage1.png | Module parameters | 300px]]  --->   
 
[[Image:RobustStatisticsSegmentation_usage1.png | Module parameters | 300px]]  --->   
 
[[Image:RobustStatisticsSegmentation_usage2.png | Adv Module parameters | 300px]]  --->   
 
[[Image:RobustStatisticsSegmentation_usage2.png | Adv Module parameters | 300px]]  --->   
 
[[Image:RobustStatisticsSegmentation_usage3.png | Adv Module parameters | 300px]]
 
[[Image:RobustStatisticsSegmentation_usage3.png | Adv Module parameters | 300px]]
  
=== General guideline ===
+
===Use Cases, Examples===
 +
 
 +
* This module is a general purpose segmenter.
 +
* Link to examples of the module's use
 +
 +
<gallery widths="400px" heights="300px" perrow="2">
 +
Image:RSSkidneyL.png|Left kidney, CT image(512*512*204). IO time: 10sec, module running time: 12sec (Intel 3.0GHz), <br>Approximate volume: 200 ml, <br>Intensity homogeneity: 0.1, <br>Boundary smoothness: 0.5
 +
Image:RSS_rkidney.png|Right kidney, CT image(512*512*204). IO time: 10sec, module running time: 15sec (Intel 3.0GHz), <br>Approximate volume: 200 ml, <br>Intensity homogeneity: 0.1, <br>Boundary smoothness: 0.5
 +
Image:RSS_tumor.png|Brain tumor, MR image(256*256*123). IO time: 3sec, Module running time: 2.5sec (Intel 3.0GHz), <br>Approximate volume: 50 ml, <br>Intensity homogeneity: 0.1,  <br>Boundary smoothness: 0.2
 +
Image:RssVentricle.png|Ventricle, MR image(256*256*124). IO time: 3sec, Module running time: 2.5sec (Intel 3.0GHz), <br>Approximate volume: 30 ml, <br>Intensity homogeneity: 0.02,  <br>Boundary smoothness: 0.0
 +
Image:RSS-aorta.png|Aorta, CT image(512*512*204). IO time: 10sec, module running time: 12sec (Intel 3.0GHz), <br>Approximate volume: 60 ml, <br>Intensity homogeneity: 1.0,  <br>Boundary smoothness: 0.0
 +
Image:RSSMandible.png|Head, CT image(512*512*460) from http://pubimage.hcuge.ch:8080/ MANIX data set. IO time: 16sec, module running time: 160sec (Intel 3.0GHz), <br>Approximate volume: 100 ml, <br>Intensity homogeneity: 0.5,  <br>Boundary smoothness: 0.0
 +
</gallery>
 +
 
 +
===Tutorials===
 +
 
 
* First run:
 
* First run:
# Give a rough estimate of the object volume and put fiducial points (preferred to be 2 or more) in the object.
+
# Give a rough estimate of the object volume and use the editing module to paint several non-zero labels, called seeds in the following, in the object.
 
# Run the module using the default parameters.
 
# Run the module using the default parameters.
  
 
* Note:
 
* Note:
 
# The Approximate volume is just a rough upper limit for the volume. It should be at least the size of the object. This is because when the volume reaches that, the program must stop. However, other criteria may stop the algorithm before the volume reaches this value.
 
# The Approximate volume is just a rough upper limit for the volume. It should be at least the size of the object. This is because when the volume reaches that, the program must stop. However, other criteria may stop the algorithm before the volume reaches this value.
# The fiducial points can be thrown into the object. What I do is I just add two fiducial points and move them into the object within one slice.
+
# The positions of the seeds have to be in the object, preferably close to center.
  
 
* Troubleshooting
 
* Troubleshooting
Line 46: Line 67:
 
** '''Some regions are missed, at the same time leakages to some other regions'''. Try (either one)
 
** '''Some regions are missed, at the same time leakages to some other regions'''. Try (either one)
 
*** Increase "Intensity homogeneity"
 
*** Increase "Intensity homogeneity"
*** Add another fiducial point
+
*** Add some other seeds
  
  
=== Multiple-value label map handeling ===
 
  
The parameter "Output Label Value"(OLV) is for user to assign the output label value. Moreover, it is also used in cases where the user provided label map contains more than one label value. In general, the module handles three cases:
+
* Data Set http://www.spl.harvard.edu/publications/item/view/1180 Tumorbase.zip at page bottom, in the zip file, case3/grayscale.nrrd
  
# user provided label map contains only one label value, L. In this case, the output label value will be set to OLV, not matter what value L takes.
+
1. Draw label map in Editing module
# user provided label map contains multiple label values, one of which matches OLV. Then only that label will be effective and all the others are discarded. The output will have label value OLV too.
+
In the editing module, select any drawing tool, for example the "Paint" tool circled in red. Draw some strokes in the target in one of the 2D views. In this example, we only freely draw the "S" shaped label circled in green.
# user provided label map contains multiple label values, but none matches OLV. Then all the non-zero labels will be considered as a single label value and then come back to the case 1 above.
 
  
== Testing ==
+
[[Image:RSS_editStep.png | Drawing label map for RSS| 700px]]
 +
2. Run RSS.
 +
To run the RSS module. The parameters which may affect the segmentation results include: ''Approximate volume'', ''Intensity homogeneity'', ''Boundary smoothness'', ''Max running time''. The particular setting of the parameters for this example case is shown in the screenshot, in the red box. Some guidelines for adjusting them are given in the '''Troubleshooting''' section above, whereas their general roles in influencing the results are given in the '''Quick Tour of Features and Use''' section below. The sensitivity of the parameters are not quantitatively evaluated. In some easy cases, the algorithm is rather robust to the parameters. However for some objects with inhomogeneous intensity as well as irregular shape, the parameters may need to be carefully tuned.
  
Several tests are conducted and shown here along with the parameters used to get the results.
+
[[Image:RSS_run.png | Set up RSS module| 700px]]
  
== Testing case: left kidney ==
+
* Multiple-value label map handling
  
* Data set: http://wiki.na-mic.org/Wiki/images/8/8d/Patient1.tar.gz
+
The parameter "Output Label Value"(OLV) is for user to assign the output label value. Moreover, when user provided label map contains several labels, the target corresponding to the OLV is the one get segmented. More specifically, there are three difference situations:
* Approximate volume: 200 mL
 
* Intensity homogeneity: 0.1
 
* Boundary smoothness: 0.5
 
  
[[Image:RobustStatisticsSegmentation_LeftKidney.png | Segmentation of left kidney | 800px]]
+
# user provided label map contains only one label value, L. In this case, the output label value will be set to OLV, not matter what value L takes.
 
+
# user provided label map contains multiple label values, one of which matches OLV. Then only that label will be effective and all the others are discarded. The output will have label value OLV too.
 
+
# user provided label map contains multiple label values, but none matches OLV. Then all the non-zero labels will be considered as a single label value and then come back to the case 1 above.
== Testing case: right kidney ==
 
 
 
* Data set: http://wiki.na-mic.org/Wiki/images/8/8d/Patient1.tar.gz
 
* Approximate volume: 200 mL
 
* Intensity homogeneity: 0.1
 
* Boundary smoothness: 0.5
 
 
 
In the figure below we show the position of the two seeds. They are both in the cortex region. And it can be seen in the segmentation result, the renal cortex got segmented and the pelvis is not.  
 
 
 
[[Image:RobustStatisticsSegmentation_RightKidney.png | Segmentation of right kidney | 800px]]
 
 
 
 
 
== Testing case: spleen ==
 
 
 
* Data set: http://wiki.na-mic.org/Wiki/images/8/8d/Patient1.tar.gz
 
* Approximate volume: 300 mL
 
* Intensity homogeneity: 1
 
* Boundary smoothness: 0.3
 
 
 
In the figure below we show the position of the two seeds.
 
 
 
[[Image:RobustStatisticsSegmentation_Spleen.png | Segmentation of spleen | 800px]]
 
 
 
 
 
== Testing case: liver ==
 
 
 
* Data set: http://wiki.na-mic.org/Wiki/images/8/8d/Patient1.tar.gz
 
* Approximate volume: 2000 mL
 
* Intensity homogeneity: 0.8
 
* Boundary smoothness: 0.8
 
* Max running time (min): 20
 
 
 
In the figure below we show the position of the three seeds.
 
 
 
[[Image:RobustStatisticsSegmentation_Liver.png | Segmentation of spleen | 800px]]
 
  
== Testing case: kidneys, spleen, liver ==
+
In the current version, regardless of the number of different labels appearing in the label map, only one object is extracted from the image. The on-going work extends this to extracting multiple objects simultaneously.
  
* Data set: http://wiki.na-mic.org/Wiki/images/8/8d/Patient1.tar.gz
+
===Quick Tour of Features and Use===
  
User can chose output label value. If different labels are used for different organs, then user can use the "Modules->Filtering->Image Label Combine" to combine the different label maps into one. This is shown in the following figure.
+
A list panels in the interface, their features, what they mean, and how to use them. For instance:
  
[[Image:RobustStatisticsSegmentation_LiverSpleenKidney.png | Segmentation of kidneys, spleen, and liver | 800px]]
+
{|
 +
|
 +
* '''Parameters panel:'''
 +
** '''Approximate volume:''' The estimated upper limit of the target volume. The resulting volume will be less or equal than this value.
 +
** '''Intensity homogeneity:''' If the target contains homogeneous intensity, then give a close-to-1 value here.
 +
** '''Boundary smoothness:''' Larger value will result in smoother boundary and a more spherical looking result.
 +
** '''Output Label Value:''' Defined the label value of the output. Also refer to the "Multiple-value label map handling" above.
 +
** '''Max running time:''' The upper limit for program running time.
 +
* '''IO panel:'''
 +
** '''Input Image:''' The image to be segmented.
 +
** '''Label Image:''' The label map providing initial seeds.
 +
* '''Output Volume:''' The output volumetric image.
 +
|[[Image:RssPanel.png|thumb|280px|User Interface]]
 +
|}
  
== Testing case: tumor ==
+
== Development ==
  
* Data set: http://wiki.na-mic.org/Wiki/images/0/0f/MayExperiments.zip (DiffusionEditorBaselineNode.nrrd)
+
===Notes from the Developer(s)===
* Approximate volume: 30 mL
 
* Intensity homogeneity: 0.1
 
  
[[Image:RobustStatisticsSegmentation_MayExp_diffusionEditorBaseline.png | Segmentation of brain tumor | 800px]]
+
Algorithms used, library classes depended upon, use cases, etc.
  
 +
===Dependencies===
  
== Testing case: tumor ==
+
This module depends on the Slicer editing module, or outside input, to provide initial label image.
* Data set: http://www.spl.harvard.edu/publications/bitstream/download/4217 (case3/grayscale.nrrd)
 
* Approximate volume: 30 mL
 
* Intensity homogeneity: 0.4
 
  
[[Image:RobustStatisticsSegmentation_TumerBase_3.png | Segmentation of brain tumor | 800px]]
+
===Tests===
  
== Testing case: tumor ==
+
Test testing code and test data sets are included in this module to ensure its successful running on various platforms. The testing file is: SFLSRobustStat3DTestConsole.cxx, residing in the same directory as the module code.
* Data set: http://www.spl.harvard.edu/publications/bitstream/download/4217 (case5/grayscale.nrrd)
 
* Approximate volume: 3 mL
 
* Intensity homogeneity: 0.5
 
* Boundary smoothness: 0.4
 
  
This is a difficult case. All the other methods tested either captures only the middle dark spot, or leaks out of the tumor. But the method here nicely capture both the dark core and the bright shell, without leaking out to regions with intensities in the middle.
+
===Known bugs===
  
[[Image:RobustStatisticsSegmentation_TumerBase_5.png | Segmentation of brain tumor | 800px]]
+
No bug known on Apr 14.2010
  
 +
===Usability issues===
  
== Testing case: vervet brain ==
+
Follow this [http://na-mic.org/Mantis/main_page.php link] to the Slicer3 bug tracker. Please select the '''usability issue category''' when browsing or contributing.
* Data set: http://www.na-mic.org/Wiki/index.php/Vervet_MRI_registration (http://www.bsl.ece.vt.edu/data/vervet_atlas/VPA-10-1.1.zip  Vervet_T1_Template_WholeHead.nii)
 
* Approximate volume: 15 mL
 
* Intensity homogeneity: 0.5
 
  
Previous tests all run with two fiducial points, and running time are all less than 10 seconds. This case has 6 points and runs for 15min to get the result shown.
+
===Source code & documentation===
  
[[Image:RobustStatisticsSegmentation_Vervet.png | Segmentation of vervet brain | 800px]]
+
Links to the module's source code:
  
== Key Investigators ==
+
Source code:
 +
*[http://viewvc.slicer.org/viewcvs.cgi/trunk file.cxx ]
 +
*[http://viewvc.slicer.org/viewcvs.cgi/trunk file.h ]
 +
 +
Doxygen documentation:
 +
*[http://www.na-mic.org/Slicer/Documentation/Slicer3-doc/html/classes.html class1]
  
Georgia Tech: Yi Gao and Allen Tannenbaum
+
== More Information ==
  
BWH: Katie Hayes, Andriy Fedorov, and Ron Kikinis
+
===Acknowledgment===
 +
This  work  was  supported  in  part  by  grants  from  NSF, AFOSR, ARO, as well as by a grant from
 +
NIH (NAC P41 RR-13218) through Brigham and Women’s
 +
Hospital. An NSF Fellowship supported part of the work.
  
 
== Publications ==
 
== Publications ==

Revision as of 15:36, 1 March 2011

Home < RobustStatisticsSegmentation

Robust Statistics Based Segmentation

RSS module panel
RSS result for abdominal CT image
RSS result for Brain MR image

General Information

Module Type & Category

Type: CLI

Category: Segmentation

Authors, Collaborators & Contact

  • Yi Gao (Author): Georgia Tech
  • Allen Tannenbaum (Author): Georgia Tech
  • Ron Kikinis (Author): BWH
  • Contact: Yi Gao, yi.gao@gatech.edu

Module Description

This module is a general purpose segmenter. The target object is initialized by a label map. An active contour model then evolves to extract the desired boundary of the object.

Usage

Module parameters ---> Adv Module parameters ---> Adv Module parameters

Use Cases, Examples

  • This module is a general purpose segmenter.
  • Link to examples of the module's use

Tutorials

  • First run:
  1. Give a rough estimate of the object volume and use the editing module to paint several non-zero labels, called seeds in the following, in the object.
  2. Run the module using the default parameters.
  • Note:
  1. The Approximate volume is just a rough upper limit for the volume. It should be at least the size of the object. This is because when the volume reaches that, the program must stop. However, other criteria may stop the algorithm before the volume reaches this value.
  2. The positions of the seeds have to be in the object, preferably close to center.
  • Troubleshooting
    • Surface is too rough. Try:
      • Increase "Boundary smoothness"
    • Leakage into thin/narrow regions. Try:
      • Increase "Boundary smoothness"
    • leakage into similar (but still different) intensity regions (which is not necessarily thin), Try:
      • Increase "Intensity homogeneity"
    • Some regions are missed: Try (either one):
      • Increase "Max volume"
      • Decrease"Intensity homogeneity"
      • Decrease "Boundary smoothness"
    • Some regions are missed, at the same time leakages to some other regions. Try (either one)
      • Increase "Intensity homogeneity"
      • Add some other seeds


1. Draw label map in Editing module

In the editing module, select any drawing tool, for example the "Paint" tool circled in red. Draw some strokes in the target in one of the 2D views. In this example, we only freely draw the "S" shaped label circled in green.

Drawing label map for RSS

2. Run RSS. 

To run the RSS module. The parameters which may affect the segmentation results include: Approximate volume, Intensity homogeneity, Boundary smoothness, Max running time. The particular setting of the parameters for this example case is shown in the screenshot, in the red box. Some guidelines for adjusting them are given in the Troubleshooting section above, whereas their general roles in influencing the results are given in the Quick Tour of Features and Use section below. The sensitivity of the parameters are not quantitatively evaluated. In some easy cases, the algorithm is rather robust to the parameters. However for some objects with inhomogeneous intensity as well as irregular shape, the parameters may need to be carefully tuned.

Set up RSS module

  • Multiple-value label map handling

The parameter "Output Label Value"(OLV) is for user to assign the output label value. Moreover, when user provided label map contains several labels, the target corresponding to the OLV is the one get segmented. More specifically, there are three difference situations:

  1. user provided label map contains only one label value, L. In this case, the output label value will be set to OLV, not matter what value L takes.
  2. user provided label map contains multiple label values, one of which matches OLV. Then only that label will be effective and all the others are discarded. The output will have label value OLV too.
  3. user provided label map contains multiple label values, but none matches OLV. Then all the non-zero labels will be considered as a single label value and then come back to the case 1 above.

In the current version, regardless of the number of different labels appearing in the label map, only one object is extracted from the image. The on-going work extends this to extracting multiple objects simultaneously.

Quick Tour of Features and Use

A list panels in the interface, their features, what they mean, and how to use them. For instance:

  • Parameters panel:
    • Approximate volume: The estimated upper limit of the target volume. The resulting volume will be less or equal than this value.
    • Intensity homogeneity: If the target contains homogeneous intensity, then give a close-to-1 value here.
    • Boundary smoothness: Larger value will result in smoother boundary and a more spherical looking result.
    • Output Label Value: Defined the label value of the output. Also refer to the "Multiple-value label map handling" above.
    • Max running time: The upper limit for program running time.
  • IO panel:
    • Input Image: The image to be segmented.
    • Label Image: The label map providing initial seeds.
  • Output Volume: The output volumetric image.
User Interface

Development

Notes from the Developer(s)

Algorithms used, library classes depended upon, use cases, etc.

Dependencies

This module depends on the Slicer editing module, or outside input, to provide initial label image.

Tests

Test testing code and test data sets are included in this module to ensure its successful running on various platforms. The testing file is: SFLSRobustStat3DTestConsole.cxx, residing in the same directory as the module code.

Known bugs

No bug known on Apr 14.2010

Usability issues

Follow this link to the Slicer3 bug tracker. Please select the usability issue category when browsing or contributing.

Source code & documentation

Links to the module's source code:

Source code:

Doxygen documentation:

More Information

Acknowledgment

This work was supported in part by grants from NSF, AFOSR, ARO, as well as by a grant from NIH (NAC P41 RR-13218) through Brigham and Women’s Hospital. An NSF Fellowship supported part of the work.

Publications

The method is based on:

  • Y. Gao, A. Tannenbaum, R. Kikinis, Simultaneous Multi-Object Segmentation using Local Robust Statistics and Contour Interaction, MICCAI 2010, Medical Computer Vision, Workshop on File:Rss.pdf

Rons

File:RobustSeg.zip