class Percentile – Percentile Object¶
The percentile object is an attrtuple returned by histogram.get_percentile(). It reports the bin value at a user-supplied CDF position (e.g. 0.05 for the 5th percentile, 0.5 for the median, 0.95 for the 95th percentile) for each channel of the underlying Histogram.
For grayscale histograms, use value (the other three fields are 0). For RGB565 histograms, l_value / a_value / b_value give the percentile for the LAB L, A, and B channels respectively.
Fields are accessible by attribute name (percentile.value) or by index (percentile[0]). The object has no public constructor.
- class image.percentile¶
Please call
histogram.get_percentile()to create this object.- value¶
Grayscale bin value at the requested percentile. Integer 0 – 255. Index
[0].
- l_value¶
LAB
Lchannel bin value at the requested percentile. Integer 0 – 100. Index[1].
- a_value¶
LAB
Achannel bin value at the requested percentile. Integer -128 – 127. Index[2].
- b_value¶
LAB
Bchannel bin value at the requested percentile. Integer -128 – 127. Index[3].