Name

CreateCumulatedHistogram — calculates cumulated gray level histogram

Calling Sequence

CumulatedHistogram = CreateCumulatedHistogram(Image);

[CumulatedHistogram, ListOfBins] = CreateCumulatedHistogram(Image);

Parameters

Image

2D matrix of type uint8, uint16, uint32 or double

CumulatedHistogram

row vector containing the cumulated histogram

ListOfBins

row vector containing the sorted unique gray values. This parameter is optional.

Description

This function calculates the cumulated histogram of an image of a numeric type. The cumulated histogram specifies for each gray level n the percentage of pixels with a gray level <= n.

Examples

RGB = ReadImage('contrib\IPD-3.3\demos\teaset.png');

Image = RGB2Gray(RGB);

figure(); ShowImage(Image, 'Gray Level Image');

[CumulatedHistogram ListOfBins] = CreateCumulatedHistogram(Image);

figure(); plot(ListOfBins, CumulatedHistogram);

See also

CreateHistogram