class Percentile – Percentile Object

The percentile object is an attrtuple returned by histogram.get_percentile().

Grayscale percentiles have one channel; use value. RGB565 percentiles have three channels; use l_value, a_value, and b_value.

Fields are accessible by name (percentile.value) or by index (percentile[0]). It has no public constructor.

class image.percentile

Please call histogram.get_percentile() to create this object.

value() int

Returns the grayscale percentile value (0 - 255).

Also accessible as percentile[0].

l_value() int

Returns the RGB565 LAB L channel percentile value (0 - 100).

Also accessible as percentile[1].

a_value() int

Returns the RGB565 LAB A channel percentile value (-128 - 127).

Also accessible as percentile[2].

b_value() int

Returns the RGB565 LAB B channel percentile value (-128 - 127).

Also accessible as percentile[3].