SFSTextureExtraction¶
在输入图像选定通道的每个像素上计算结构特征集纹理
描述¶
结构化特征集 [1] 基于图像多个方向上的像素的直方图。这个 SFSTextureExtraction 应用程序计算以下6个特征:SFS长度、SFS宽度、SFS PSI、SFS w-Mean、SFS比率和SFS d(标准差)。纹理索引是根据每个像素的邻域来计算的。可以改变计算线的长度(空间阈值),以及线的像素与邻域中心的像素之间的最大差(光谱阈值) [2] 。
参数¶
Input Image -in image
Mandatory
The input image to compute the features on.
Selected Channel -channel int
Default value: 1
The selected channel index
纹理特征参数¶
这组参数允许定义SFS纹理参数。可用的纹理特征有SFS的长度、SFS的宽度、SFS的PSI、SFS的w-均值、SFS的比率和SFS的d。它们在输出图像中按此顺序提供。
Spectral Threshold -parameters.spethre float
Default value: 50
Spectral Threshold
Spatial Threshold -parameters.spathre int
Default value: 100
Spatial Threshold
Number of Direction -parameters.nbdir int
Default value: 20
Number of Direction
Alpha -parameters.alpha float
Default value: 1
Alpha
Ratio Maximum Consideration Number -parameters.maxcons int
Default value: 5
Ratio Maximum Consideration Number
Feature Output Image -out image [dtype]
Mandatory
Output image containing the SFS texture features.
Available RAM (MB) -ram int
Default value: 256
Available memory for processing (in MB).
实例¶
从命令行执行以下操作:
otbcli_SFSTextureExtraction -in qb_RoadExtract.tif -channel 1 -parameters.spethre 50.0 -parameters.spathre 100 -out SFSTextures.tif
来自Python的评论:
import otbApplication
app = otbApplication.Registry.CreateApplication("SFSTextureExtraction")
app.SetParameterString("in", "qb_RoadExtract.tif")
app.SetParameterInt("channel", 1)
app.SetParameterFloat("parameters.spethre", 50.0)
app.SetParameterInt("parameters.spathre", 100)
app.SetParameterString("out", "SFSTextures.tif")
app.ExecuteAndWriteOutput()