Image.cf#

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

Cumulative frequency and bin values

Returns:

tuple (cf, x) where cf is cumulative histogram count values and x is left-hand bin values

Return type:

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

This is the cumulative histogram count, which increases from 0 to the total number of pixels in the image plane. For a greyscale image cf is a 1D array; for a multiplane (color) image it is a 2D array with the cumulative histogram of each plane as a column.

Changed in version 2.0.0: Was previously called cdf, and now returns (cf, x) instead of only cf. This convenience property now uses a lazily cached default histogram.

Seealso:

h pdf cdf Histogram.cf