Voting Binary Hole Filling Image Filter

Overview

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.

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

Contributors

Bill Lorensen (GE)

Acknowledgements

This command module was derived from Insight/Examples/Filtering/VotingBinaryHoleFillingImageFilter (copyright) Insight Software Consortium