Histogram.cdf#
- property Histogram.cdf: ndarray#
Cumulative distribution function
- Returns:
array of normalized cumulative histogram count values
- Return type:
ndarray(N) or ndarray(N,P)
The cdf is the cumulative frequency normalized to the range 0 to 1. This is computed by dividing the cumulative frequency 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 normalized 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
ncdf.