Image.pdf#

property Image.pdf: tuple[ndarray, ndarray][source]#

Empirical probability density function (PDF) and bin values

Returns:

tuple (pdf, x) where pdf is the normalised histogram counts and x is left-hand bin values

Return type:

tuple(ndarray(N) or ndarray(N,P), ndarray(N))

This is the histogram count normalised such that the sum is 1.0, computed by dividing the histogram counts by the total number of pixels in each plane. For a greyscale image pdf is a 1D array; for a multiplane (color) image it is a 2D array with the PDF of each plane as a column.

Seealso:

h cf cdf Histogram.pdf