class Percentile -- Percentile 物件

percentile 物件是由 histogram.get_percentile() 回傳的 attrtuple。它針對底層 Histogram 的每個通道,回報使用者指定的 CDF 位置(例如第 5 百分位數為 0.05、中位數為 0.5、第 95 百分位數為 0.95)處的分箱值。

對於灰階直方圖,請使用 value(其他三個欄位為 0)。對於 RGB565 直方圖,l_value / a_value / b_value 分別給出 LAB LAB 通道的百分位數。

欄位可透過屬性名稱(percentile.value)或索引(percentile[0])存取。此物件沒有公開的建構子。

class image.percentile

請呼叫 histogram.get_percentile() 來建立此物件。

value

所要求百分位數處的灰階分箱值。整數 0 -- 255。索引 [0]

l_value

所要求百分位數處的 LAB L 通道分箱值。整數 0 -- 100。索引 [1]

a_value

所要求百分位數處的 LAB A 通道分箱值。整數 -128 -- 127。索引 [2]

b_value

所要求百分位數處的 LAB B 通道分箱值。整數 -128 -- 127。索引 [3]