Image.h#

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

Histogram count values and bin values

Returns:

tuple (h, x) where h is histogram counts and x is left-hand bin values

Return type:

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

This is the raw histogram count: the number of pixels in the image plane with grey values in each bin. For a greyscale image h is a 1D array; for a multiplane (color) image it is a 2D array with the histogram of each plane as a column.

Changed in version 2.0.0: Returns (h, x) instead of only h. This convenience property now uses a lazily cached default histogram.

Seealso:

pdf cf cdf Histogram.h