BUILT-IN MATHEMATICA SYMBOL

# 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.

## Details and OptionsDetails and Options

• ImageHistogram yields a graphical image, represented as a Graphics object.
• 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 supports ListPlot options such as Filling, Joined, InterpolationOrder, FrameTicks, and PlotRange.
• ImageHistogram supports the following options:
•  AspectRatio ratio of height to width Axes False whether to draw axes Frame True whether to include a frame FrameTicks None frame ticks InterpolationOrder 0 the polynomial degree of curves used in joining data points Joined True whether to join bars PlotRangePadding None how much to pad the range of values
• ImageHistogram also accepts other ListPlot options.
• ImageHistogram[image] is equivalent to ImageHistogram[image, 128].
• ImageHistogram[image, n] by default takes the first histogram bin to start at channel value and the last one to end at . Channel values below or above 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.
• In ImageHistogram[image, n, {min, max}], either min or max individually can be All.
• ImageHistogram[image, ...] ignores alpha channels in image.
• With an option setting "Clipping"->False, pixels below min or above max are not counted.
• ImageHistogram works with Image3D objects.

## ExamplesExamplesopen allclose all

### Basic Examples (4)Basic Examples (4)

Show the histogram of an RGB image:

 Out[1]=

Use additive colors to represent overlapping regions of the histograms:

 Out[1]=

Show separate histograms for each color channel:

 Out[1]=

Stack the color channels vertically:

 Out[1]=