ObjectsRadiometricStatistics

计算具有图像上的矢量数据集的属性。

描述

此应用程序使用图像计算向量数据集的辐射和形状属性。结果存储在属性表中。形状属性包括:像素数、平坦度、圆度、伸长率、周长。辐射测量属性针对输入图像的每个波段:平均值、标准差、中位数、方差、峰度、偏斜度。

参数

Input vector dataset -in filename [dtype] Mandatory
Input vector dataset providing segmentation.

Input reference image -im image Mandatory
Input image used to compute radiometric attributes.

ID field -field string Default value: label
Name of the field containing object IDs.

Background value -background int Default value: 0
Background value. Needs to be different of any object ID.

实例

从命令行执行以下操作:

otbcli_ObjectsRadiometricStatistics -in segmentation.shp -im image_XS.tif -field label -background 0

来自Python的评论:

import otbApplication

app = otbApplication.Registry.CreateApplication("ObjectsRadiometricStatistics")

app.SetParameterString("in", "segmentation.shp")
app.SetParameterString("im", "image_XS.tif")
app.SetParameterString("field", "label")
app.SetParameterInt("background", 0)

app.ExecuteAndWriteOutput()

另请参阅

目前,对具有不同投影参考系的多个层的输入数据集的支持有限。