RasterLayer.GetStatistics

RasterLayer.GetStatistics method

计算包括计数、求和、平均值、最小值、最大值在内的汇总统计信息。

public RasterStatistics GetStatistics(int bandIndex = 0, bool excludeNodataValue = true)
参数类型描述
bandIndexInt32波段的索引。编号从 0 开始。
excludeNodataValueBoolean允许排除 ’nodata’ 值。如果 ’excludeNodataValue’ 设置为 false,则所有像素都被视为有效。

返回值

汇总统计信息。

另见