machinevisiontoolbox.Image.stats

Image.stats()[source]

Display pixel value statistics

Example:

>>> from machinevisiontoolbox import Image
>>> img = Image.Read('flowers1.png')
>>> img.stats()
R: range=0 - 255, mean=103.680, sdev=74.346
G: range=0 - 255, mean=112.024, sdev=50.040
B: range=0 - 255, mean=100.686, sdev=65.614