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

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

Normalizes the grayscale values of a source image based on the grayscale values of a reference image. This filter uses a histogram matching technique where the histograms of the two images are matched only at a specified number of quantile values.

The filter was orginally designed to normalize MR images of the sameMR protocol and same body part. The algorithm works best if background pixels are excluded from both the source and reference histograms. A simple background exclusion method is to exclude all pixels whose grayscale values are smaller than the mean grayscale value. ThresholdAtMeanIntensity switches on this simple background exclusion method.

Number of match points governs the number of quantile values to be matched.

The filter assumes that both the source and reference are of the same type and that the input and output image type have the same number of dimension and have scalar pixel types.

Use Cases

Most frequently used for these scenarios:

  • Use Case 1:





  • Histogram Matching Parameters: Parameters for Histogram Matching
    • Number of Histogram Levels (numberOfHistogramLevels): The number of hisogram levels to use
    • Number of Match Points (numberOfMatchPoints): The number of match points to use
    • Threshold at mean (thresholdAtMeanIntensity): If on, only pixels above the mean in each volume are thresholded.
  • IO: Input/output parameters
    • Input Volume (inputVolume): Input volume to be filtered
    • Reference Volume (referenceVolume): Input volume whose histogram will be matched
    • Output Volume (outputVolume): Output volume. This is the input volume with intensities matched to the reference volume.

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