RasterLayer.GetStatistics

RasterLayer.GetStatistics method

计算由计数、总和、平均值、最小值、最大值组成的汇总统计信息。

public RasterStatistics GetStatistics(int bandIndex = 0, bool excludeNodataValue = true)
范围类型描述
bandIndexInt32乐队的索引。编号从0开始。
excludeNodataValueBoolean允许排除“无数据”值。如果“excludeNodataValue”设置为 false,则考虑所有像素。

返回值

汇总统计。

也可以看看