4.6.12 SFS Texture Extraction

Computes Structural Feature Set textures on every pixel of the input image selected channel

Detailed description

This application computes SFS textures on a mono band image

Parameters

This section describes in details the parameters available for this application. Table 4.98, page 632 presents a summary of these parameters and the parameters keys to be used in command-line and programming languages. Application key is SFSTextureExtraction.





Parameter key

Parameter type

Parameter description




in

Input image

Input Image

channel

Int

Selected Channel

ram

Int

Available RAM (Mb)

parameters

Group

Texture feature parameters

parameters.spethre

Float

Spectral Threshold

parameters.spathre

Int

Spatial Threshold

parameters.nbdir

Int

Number of Direction

parameters.alpha

Float

Alpha

parameters.maxcons

Int

Ratio Maximum Consideration Number

out

Output image

Feature Output Image

inxml

XML input parameters file

Load otb application from xml file

outxml

XML output parameters file

Save otb application to xml file











Table 4.98: Parameters table for SFS Texture Extraction.

Input Image The input image to compute the features on.

Selected Channel The selected channel index

Available RAM (Mb) Available memory for processing (in MB)

Texture feature parameters This group of parameters allows to define SFS texture parameters. The available texture features are SFS’Length, SFS’Width, SFS’PSI, SFS’W-Mean, SFS’Ratio and SFS’SD. They are provided in this exact order in the output image.

Feature Output Image Output image containing the SFS texture features.

Load otb application from xml file Load otb application from xml file

Save otb application to xml file Save otb application to xml file

Example

To run this example in command-line, use the following:

otbcli_SFSTextureExtraction -in qb_RoadExtract.tif -channel 1 -parameters.spethre 50.0 -parameters.spathre 100 -out SFSTextures.tif

To run this example from Python, use the following code snippet:

#!/usr/bin/python 
 
# Import the otb applications package 
import otbApplication 
 
# The following line creates an instance of the SFSTextureExtraction application 
SFSTextureExtraction = otbApplication.Registry.CreateApplication("SFSTextureExtraction") 
 
# The following lines set all the application parameters: 
SFSTextureExtraction.SetParameterString("in", "qb_RoadExtract.tif") 
 
SFSTextureExtraction.SetParameterInt("channel", 1) 
 
SFSTextureExtraction.SetParameterFloat("parameters.spethre", 50.0) 
 
SFSTextureExtraction.SetParameterInt("parameters.spathre", 100) 
 
SFSTextureExtraction.SetParameterString("out", "SFSTextures.tif") 
 
# The following line execute the application 
SFSTextureExtraction.ExecuteAndWriteOutput()

Limitations

None

Authors

This application has been written by OTB-Team.

See also

These additional ressources can be useful for further information: