From SlicerWiki
Jump to: navigation, search
Home < Modules:RobustStatisticsSeg-Documentation-3.6

Return to Slicer 3.6 Documentation

Robust Statistics Segmentation

RSS module panel
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,

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.


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


  • 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


Notes from the Developer(s)

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


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


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

The source code of the algorithm is in 3D Slicer source directory tree. Under Slicer3/Applications/CLI/RobustStatisticsSegmenter/

Moreover, the code above is a self-contained implementation for the 3D Sparse Filed Level Set method. The level set evolution is implemented in the base class. Specific flow, such as Chan-Vese, Geodesic Active Contour, or the Robust Statistics based flow, can be implemented as the derived class. Therefore, it can be reused for other types of flow with not much work.

More Information


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.


Yi Gao, Ron Kikinis, Sylvain Bouix, Martha Shenton, Allen Tannenbaum, A 3D Interactive Multi-object Segmentation Tool using Local Robust Statistics Driven Active Contours, Medical Image Analysis, 2012,