Histogram.h#

property Histogram.h: ndarray#

Histogram count values

Returns:

array of histogram count values

Return type:

ndarray(N) or ndarray(N,P)

This is the raw histogram count, which is the number of pixels in the image plane with grey values equal to the index of the bin.

For a greyscale image this is a 1D array, for a multiplane (color) image this is a 2D array with the histograms of each plane as columns.

Example:

>>> from machinevisiontoolbox import Image
>>> import numpy as np
>>> hist = Image.Read('flowers1.png').hist()
Seealso:

pdf cf cdf