LocalStatisticExtraction¶
在输入图像的选定通道中的每个像素上计算局部统计矩
描述¶
这个应用程序在指定的邻域内,对输入图像的选定通道中的每个像素计算4个局部统计矩。输出图像是多波段的,每个波段有一个统计矩(特征)。因此,4个输出特征是均值、方差、偏度和峰度。它们在输出图像中按此顺序提供。
参数¶
Input Image -in image
Mandatory
The input image to compute the features on.
Feature Output Image -out image [dtype]
Mandatory
Output image containing the local statistical moments.
Selected Channel -channel int
Default value: 1
The selected channel index (1 based)
Neighborhood radius -radius int
Default value: 3
The computational window radius.
Available RAM (MB) -ram int
Default value: 256
Available memory for processing (in MB).
实例¶
从命令行执行以下操作:
otbcli_LocalStatisticExtraction -in qb_RoadExtract.tif -channel 1 -radius 3 -out Statistics.tif
来自Python的评论:
import otbApplication
app = otbApplication.Registry.CreateApplication("LocalStatisticExtraction")
app.SetParameterString("in", "qb_RoadExtract.tif")
app.SetParameterInt("channel", 1)
app.SetParameterInt("radius", 3)
app.SetParameterString("out", "Statistics.tif")
app.ExecuteAndWriteOutput()
另请参阅¶
OtbRadiometricMomentsImageFunction类