This is documentation for Mathematica 7, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

ImageHistogram

ImageHistogram[image]
plots a histogram of the pixel levels for each channel in image.
ImageHistogram[image, n]
uses n levels for each channel.
ImageHistogram[image, n, {min, max}]
puts all values into n bins between min and max.
  • For a three-channel image, ImageHistogram by default displays the channels using red, green and blue.
  • ImageHistogram supports an Appearance option which determines the detailed appearance of the histogram. Possible settings include:
"RGB"show RGB channel values and overlapping colors
"Separated"make separate histograms for each channel
"Stacked"stack values for each channel
"Transparent"show channels overlapping using transparency
  • ImageHistogram[image, n] by default takes the first histogram bin to start at channel value 0 and the last one to end at 1. Channel values below 0 or above 1 are shown in the first and last bins, respectively.
  • ImageHistogram[image, n, {min, max}] takes the first bin to start at min, and the last bin to end at max.
  • ImageHistogram[image, n, All] gives n equally spaced bins, extending over the complete range of values in each channel.
Show the histogram of an RGB image:
Use additive colors to represent overlapping regions of the histograms:
Show separate histograms for each color channel:
Stack the color channels vertically:
Show the histogram of an RGB image:
In[1]:=
Click for copyable input
Out[1]=
 
Use additive colors to represent overlapping regions of the histograms:
In[1]:=
Click for copyable input
Out[1]=
 
Show separate histograms for each color channel:
In[1]:=
Click for copyable input
Out[1]=
 
Stack the color channels vertically:
In[1]:=
Click for copyable input
Out[1]=
New in 7