From SlicerWiki
Jump to: navigation, search
Home < Documentation < Nightly < Modules < VotingBinaryHoleFillingImageFilter

For the stable Slicer documentation, visit the 4.6 page.

Introduction and Acknowledgements

This work is part of the National Alliance for Medical Image Computing (NA-MIC), funded by the National Institutes of Health through the NIH Roadmap for Medical Research, Grant U54 EB005149. Information on NA-MIC can be obtained from the NA-MIC website.
Author: Jim Miller, GE
Contact: Jim Miller,


Module Description

Applies a voting operation in order to fill-in cavities. This can be used for smoothing contours and for filling holes in binary images. This technique is used frequently when segmenting complete organs that may have ducts or vasculature that may not have been included in the initial segmentation, e.g. lungs, kidneys, liver.

Use Cases

Most frequently used for these scenarios:

  • Use Case 1:
(Red) Original image. (Yellow) Otsu threshold. (Green) Voting binary hole filling with a "Maximum radius" of "15,15,1" on the Otsu thresholded image.



Panels and their use


  • Binary Hole Filling Parameters: Parameters for Hole Filling
    • Maximum Radius (radius): The radius of a hole to be filled
    • Majority Threshold (majorityThreshold):

The number of pixels over 50% that will decide whether an OFF pixel will become ON or not. For example, if the neighborhood of a pixel has 124 pixels (excluding itself), the 50% will be 62, and if you set a Majority threshold of 5, that means that the filter will require 67 or more neighbor pixels to be ON in order to switch the current OFF pixel to ON.

    • Background (background):
     The value associated with the background (not object)
    • Foreground (foreground):
     The value associated with the foreground (object)
  • IO: Input/output parameters
    • Input Volume (inputVolume): Input volume to be filtered
    • Output Volume (outputVolume): Output filtered

List of parameters generated transforming this XML file using this XSL file. To update the URL of the XML file, edit this page.

Similar Modules




Information for Developers