Histogram.x#

property Histogram.x: ndarray[source]#

Histogram bin values

Returns:

array of left-hand bin values

Return type:

ndarray(N)

Bin \(i\) contains grey values in the range \([x_{[i]}, x_{[i+1]})\).

Example:

>>> from machinevisiontoolbox import Image
>>> import numpy as np
>>> hist = Image.Read('flowers1.png').hist()
>>> with np.printoptions(threshold=10):
...     hist.x
array([  0,   1,   2, ..., 253, 254, 255], shape=(256,))