PantexTextureExtraction¶
计算输入图像的选定通道上的Pantex纹理特征
描述¶
这个应用程序根据标量图像的纹理特征计算纹理派生的构建存在指数(Pantex)。这是一种基于共现的对比质地测量。
参数¶
Input Image -in image
Mandatory
The input image to compute the features on.
Selected Channel -channel int
Default value: 1
The selected channel index
Output Image -out image [dtype]
Mandatory
Output image containing the selected texture features.
Image minimum -min float
Input image minimum. If this parameter is not set, the application will compute the minimum of the image.
Image maximum -max float
Input image maximum. If this parameter is not set, the application will compute the maximum of the image.
Window radius (x direction) -sradx int
Default value: 4
Radius of the window on which textures are computed (x direction)
Window radius (y direction) -srady int
Default value: 4
Radius of the window on which textures are computed (y direction)
Number of bins per axis for histogram generation -nbin int
Default value: 8
Number of bins per axis for histogram generation (number of gray levels considered in the computation of co-occurance).
Available RAM (MB) -ram int
Default value: 256
Available memory for processing (in MB).
实例¶
从命令行执行以下操作:
otbcli_PantexTextureExtraction -in qb_RoadExtract.tif -channel 2 -min 0 -max 255 -nbin 8 -srady 4 -sradx 4
来自Python的评论:
import otbApplication
app = otbApplication.Registry.CreateApplication("PantexTextureExtraction")
app.SetParameterString("in", "qb_RoadExtract.tif")
app.SetParameterInt("channel", 2)
app.SetParameterFloat("min", 0)
app.SetParameterFloat("max", 255)
app.SetParameterInt("nbin", 8)
app.SetParameterInt("srady", 4)
app.SetParameterInt("sradx", 4)
app.ExecuteAndWriteOutput()