Histogram.pdf#

property Histogram.pdf: ndarray#

Empirical probability density function (PDF)

Returns:

array of cumulative histogram count values

Return type:

ndarray(N) or ndarray(N,P)

This the histogram count normalized such that the sum is 1.0. This is computed by dividing the histogram counts by the total number of pixels in each plane.

For a greyscale image this is a 1D array, for a multiplane (color) image this is a 2D array with the cumulative histograms of each plane as columns.

Example:

>>> from machinevisiontoolbox import Image
>>> import numpy as np
>>> hist = Image.Read('flowers1.png').hist()
Seealso:

h cf cdf