class Statistics – Statistics Object
The statistics object is an attrtuple returned by histogram.get_statistics()
or Image.get_statistics().
Grayscale statistics have one channel; use the non l_*, a_*, b_*
fields. RGB565 statistics use the l_*, a_*, and b_* fields.
Fields are accessible by name (statistics.mean) or by index
(statistics[0]). It has no public constructor.
-
class image.statistics
Please call histogram.get_statistics() or Image.get_statistics() to
create this object.
-
mean() → int
Returns the grayscale mean (0 - 255). Also accessible as statistics[0].
-
median() → int
Returns the grayscale median (0 - 255). Also accessible as statistics[1].
-
mode() → int
Returns the grayscale mode (0 - 255). Also accessible as statistics[2].
-
stdev() → int
Returns the grayscale standard deviation (0 - 255). Also accessible as
statistics[3].
-
min() → int
Returns the grayscale min (0 - 255). Also accessible as statistics[4].
-
max() → int
Returns the grayscale max (0 - 255). Also accessible as statistics[5].
-
lq() → int
Returns the grayscale lower quartile (0 - 255). Also accessible as
statistics[6].
-
uq() → int
Returns the grayscale upper quartile (0 - 255). Also accessible as
statistics[7].
-
l_mean() → int
Returns the RGB565 LAB L mean (0 - 100). Also accessible as
statistics[8].
-
l_median() → int
Returns the RGB565 LAB L median (0 - 100). Also accessible as
statistics[9].
-
l_mode() → int
Returns the RGB565 LAB L mode (0 - 100). Also accessible as
statistics[10].
-
l_stdev() → int
Returns the RGB565 LAB L standard deviation (0 - 100). Also accessible as
statistics[11].
-
l_min() → int
Returns the RGB565 LAB L min (0 - 100). Also accessible as
statistics[12].
-
l_max() → int
Returns the RGB565 LAB L max (0 - 100). Also accessible as
statistics[13].
-
l_lq() → int
Returns the RGB565 LAB L lower quartile (0 - 100). Also accessible as
statistics[14].
-
l_uq() → int
Returns the RGB565 LAB L upper quartile (0 - 100). Also accessible as
statistics[15].
-
a_mean() → int
Returns the RGB565 LAB A mean (-128 - 127). Also accessible as
statistics[16].
-
a_median() → int
Returns the RGB565 LAB A median (-128 - 127). Also accessible as
statistics[17].
-
a_mode() → int
Returns the RGB565 LAB A mode (-128 - 127). Also accessible as
statistics[18].
-
a_stdev() → int
Returns the RGB565 LAB A standard deviation (-128 - 127). Also accessible as
statistics[19].
-
a_min() → int
Returns the RGB565 LAB A min (-128 - 127). Also accessible as
statistics[20].
-
a_max() → int
Returns the RGB565 LAB A max (-128 - 127). Also accessible as
statistics[21].
-
a_lq() → int
Returns the RGB565 LAB A lower quartile (-128 - 127). Also accessible as
statistics[22].
-
a_uq() → int
Returns the RGB565 LAB A upper quartile (-128 - 127). Also accessible as
statistics[23].
-
b_mean() → int
Returns the RGB565 LAB B mean (-128 - 127). Also accessible as
statistics[24].
-
b_median() → int
Returns the RGB565 LAB B median (-128 - 127). Also accessible as
statistics[25].
-
b_mode() → int
Returns the RGB565 LAB B mode (-128 - 127). Also accessible as
statistics[26].
-
b_stdev() → int
Returns the RGB565 LAB B standard deviation (-128 - 127). Also accessible as
statistics[27].
-
b_min() → int
Returns the RGB565 LAB B min (-128 - 127). Also accessible as
statistics[28].
-
b_max() → int
Returns the RGB565 LAB B max (-128 - 127). Also accessible as
statistics[29].
-
b_lq() → int
Returns the RGB565 LAB B lower quartile (-128 - 127). Also accessible as
statistics[30].
-
b_uq() → int
Returns the RGB565 LAB B upper quartile (-128 - 127). Also accessible as
statistics[31].