Statistics

Краткая информация

Вычисляет статистику для каждой ячейки изображения на основе определенной фокальной окрестности.

Обсуждение

Дополнительные сведения о методах и порядке каналов, используемых в этой функции, см. в описании растровой функции Статистика.

Указанный набор растровых данных является временным для растрового объекта. Чтобы сделать его постоянным, вы можете вызвать метод растрового объекта save.

Синтаксис

Statistics (raster, kernel_columns, kernel_rows, stat_type, {fill_no_data_only})
ПараметрОписаниеТип данных
raster

The input raster on which to perform focal statistics.

Raster
kernel_columns

The number of pixel columns to use in your focal neighborhood dimension.

(Значение по умолчанию — 3)

Integer
kernel_rows

The number of pixel rows to use in your focal neighborhood dimension.

(Значение по умолчанию — 3)

Integer
stat_type

Specify the type of statistics to calculate.

  • max Calculates the maximum value of the pixels within the neighborhood.
  • mean Calculates the average value of the pixels within the neighborhood. This is the default.
  • min Calculates the minimum value of the pixels within the neighborhood.
  • standarddeviationCalculates the standard deviation value of the pixels within the neighborhood.
  • medianCalculates the median value of the pixels within the neighborhood.
  • majority Calculates the majority value, or the value that occurs most frequently, of the pixels within the neighborhood.
  • minority Calculates the minority value, or the value that occurs least frequently, of the pixels within the neighborhood.

(Значение по умолчанию — None)

String
fill_no_data_only

Specify whether NoData values are ignored in the analysis.

  • True—Fills NoData pixels only. This is the default.
  • False—NoData pixels will not be filled.

(Значение по умолчанию — False)

Boolean
Возвращаемое значение
Тип данныхОписание
Raster

Выходной растр.