class Global: def __init__(self)
Calculate statistics for the given image.
class Stat: def __init__(self, image, mask=None)
Calculate statistics for the given image.
Global()
Calculate statistics for the given image. If a mask is included, only the regions covered by that mask are included in the statistics.
Stat()
Calculate statistics for the given image. If a mask is included, only the regions covered by that mask are included in the statistics.
Stat(image, mask=None)
Create a statistics object.
image
-- A PIL image, or a precalculate histogram.
mask
-- An optional mask.