Difference between revisions of "Cumulative Histogram"

From MIPAV
Jump to: navigation, search
m
 
Line 36: Line 36:
  
 
==References ==
 
==References ==
 
[http://mipav.cit.nih.gov/documentation/HTML%20Algorithms/HistogramCumulative.html MIPAV HTML Help].
 
  
 
J. Delon, Midway Image Equalization, Journal of Mathematical Imaging and Vision, vol.21, no.2, pp.119-134, 2004.  
 
J. Delon, Midway Image Equalization, Journal of Mathematical Imaging and Vision, vol.21, no.2, pp.119-134, 2004.  

Latest revision as of 15:19, 25 April 2013

A sample cumulative histogram
Figure 12a. A 3D grayscale image (a)
Figure 12b. Its cumulative histogram (b)
Figure 13. A 2D RGB image and its cumulative histograms for each channel (red -c, green-d and blue-b)
Figure 13. A 2D RGB image and its cumulative histograms for each channel (red -b, green-c and blue-d)

The cumulative histogram is a histogram in which the vertical axis gives not just the counts for a single bin, but rather gives the counts for that bin plus all bins for smaller values of the response variable.

Background

Let I:Q -> [0,1] be an image and h is the distribution of its values (a histogram). The cumulative histogram of I is the function H: [0,1] -> [0,1] defined by

<math> H(x)=\int_0 ^x h(t)d(t) </math>

Image types

One can apply the Cumulative Histogram algorithm to 2D, 2.5D and 3D grayscale and color (RGB) images. For RGB images the algorithm will display a separate cumulative histogram for each channel (R, G, and B).

Examples

Following examples display cumulative histograms for grayscale and RGB images. Figure 12 shows a 3D grayscale image (a) and its cumulative histogram (b). Figure 13 and Figure 14 show 2D RGB images and their cumulative histograms for each channel. Note that, the RGB image from Figure 13 has in fact only two color channels - Red and Blue, therefore its cumulative histogram for the Green channel shows nothing.

Applying Cumulative Histogram algorithm to images

To apply Cumulative Histogram to grayscale images

  • Open an image of interest.
  • In the main MIPAV window, navigate to Algorithms > Histogram Tools > Cumulative Histogram.
  • The algorithm starts running and the cumulative histogram appears in a new image frame. See Figure 12.

To apply Cumulative Histogram to RGB images

  • Open an image of interest.
  • Call Algorithms > Histogram Tools > Cumulative Histogram from the main MIPAV menu.
  • The algorithm starts running and the cumulative histograms for each channel (R,G, and B) appear. See Figure 13 and Figure 14.

References

J. Delon, Midway Image Equalization, Journal of Mathematical Imaging and Vision, vol.21, no.2, pp.119-134, 2004.

Understanding Histograms in Digital Photography

See also: