class Statistics – Statistics-Objekt¶
Das statistics-Objekt ist ein attrtuple, das von histogram.get_statistics() (und seinen Aliassen histogram.get_stats() / histogram.statistics()) oder direkt von Image.get_statistics() zurückgegeben wird. Es fasst die Bin-Verteilung des zugrunde liegenden Histogram mit acht Reduktionen pro Kanal zusammen: Mittelwert, Median, Modus, Standardabweichung, Min, Max, unteres Quartil und oberes Quartil.
Bei Graustufendaten tragen nur die nicht präfixierten Felder (mean, median, mode, stdev, min, max, lq, uq) nützliche Werte, und sie werden für RGB565-Daten als Reduktionen des LAB-L-Kanals wiederverwendet – die l_*-Felder spiegeln daher die nicht präfixierten Felder wider und werden aus Symmetriegründen bereitgestellt. a_* und b_* tragen nur bei RGB565-Histogrammen nützliche Werte.
Felder sind über den Attributnamen (statistics.mean) oder über den Index (statistics[0]) zugänglich. Das Objekt hat keinen öffentlichen Konstruktor.
- class image.statistics¶
Rufen Sie
histogram.get_statistics()oderImage.get_statistics()auf, um dieses Objekt zu erstellen.Graustufen / LAB L (auch als
l_*weiter unten verfügbar)¶- mean¶
Graustufen-Mittelwert des Histogramms. Ganzzahl 0 – 255. Index
[0].
- median¶
Graustufen-Median des Histogramms. Ganzzahl 0 – 255. Index
[1].
- mode¶
Graustufen-Modus des Histogramms. Ganzzahl 0 – 255. Index
[2].
- stdev¶
Graustufen-Standardabweichung des Histogramms. Ganzzahl 0 – 255. Index
[3].
- min¶
Graustufen-Minimum des Histogramms. Ganzzahl 0 – 255. Index
[4].
- max¶
Graustufen-Maximum des Histogramms. Ganzzahl 0 – 255. Index
[5].
- lq¶
Unteres Quartil (25. Perzentil) der Graustufen des Histogramms. Ganzzahl 0 – 255. Index
[6].
- uq¶
Oberes Quartil (75. Perzentil) der Graustufen des Histogramms. Ganzzahl 0 – 255. Index
[7].
LAB-L-Kanal (RGB565)¶
- l_mean¶
Mittelwert des LAB-
L-Kanals. Ganzzahl 0 – 100. Index[8].
- l_median¶
Median des LAB-
L-Kanals. Ganzzahl 0 – 100. Index[9].
- l_mode¶
Modus des LAB-
L-Kanals. Ganzzahl 0 – 100. Index[10].
- l_stdev¶
Standardabweichung des LAB-
L-Kanals. Ganzzahl 0 – 100. Index[11].
- l_min¶
Minimum des LAB-
L-Kanals. Ganzzahl 0 – 100. Index[12].
- l_max¶
Maximum des LAB-
L-Kanals. Ganzzahl 0 – 100. Index[13].
- l_lq¶
Unteres Quartil des LAB-
L-Kanals. Ganzzahl 0 – 100. Index[14].
- l_uq¶
Oberes Quartil des LAB-
L-Kanals. Ganzzahl 0 – 100. Index[15].
LAB-A-Kanal (RGB565)¶
- a_mean¶
Mittelwert des LAB-
A-Kanals. Ganzzahl -128 – 127. Index[16].
- a_median¶
Median des LAB-
A-Kanals. Ganzzahl -128 – 127. Index[17].
- a_mode¶
Modus des LAB-
A-Kanals. Ganzzahl -128 – 127. Index[18].
- a_stdev¶
Standardabweichung des LAB-
A-Kanals. Ganzzahl -128 – 127. Index[19].
- a_min¶
Minimum des LAB-
A-Kanals. Ganzzahl -128 – 127. Index[20].
- a_max¶
Maximum des LAB-
A-Kanals. Ganzzahl -128 – 127. Index[21].
- a_lq¶
Unteres Quartil des LAB-
A-Kanals. Ganzzahl -128 – 127. Index[22].
- a_uq¶
Oberes Quartil des LAB-
A-Kanals. Ganzzahl -128 – 127. Index[23].
LAB-B-Kanal (RGB565)¶
- b_mean¶
Mittelwert des LAB-
B-Kanals. Ganzzahl -128 – 127. Index[24].
- b_median¶
Median des LAB-
B-Kanals. Ganzzahl -128 – 127. Index[25].
- b_mode¶
Modus des LAB-
B-Kanals. Ganzzahl -128 – 127. Index[26].
- b_stdev¶
Standardabweichung des LAB-
B-Kanals. Ganzzahl -128 – 127. Index[27].
- b_min¶
Minimum des LAB-
B-Kanals. Ganzzahl -128 – 127. Index[28].
- b_max¶
Maximum des LAB-
B-Kanals. Ganzzahl -128 – 127. Index[29].
- b_lq¶
Unteres Quartil des LAB-
B-Kanals. Ganzzahl -128 – 127. Index[30].
- b_uq¶
Oberes Quartil des LAB-
B-Kanals. Ganzzahl -128 – 127. Index[31].