Histogram.cf#

property Histogram.cf: ndarray#

Cumulative histogram count values

Returns:

array of cumulative histogram count values

Return type:

ndarray(N) or ndarray(N,P)

This the cumulative histogram count, which increases from 0 to the total number of pixels in the image 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()

Changed in version 2.0.0: In earlier releases this method was named cdf.

Seealso:

h pdf cdf