EdgeExtraction - Edge Feature Extraction

Computes edge features on every pixel of the input image selected channel

Detailed description

This application computes edge features on a mono band image


This section describes in details the parameters available for this application. Table [1] presents a summary of these parameters and the parameters keys to be used in command-line and programming languages. Application key is EdgeExtraction .

[1]Table: Parameters table for Edge Feature Extraction.
Parameter Key Parameter Name Parameter Type
in Input Image Input image
channel Selected Channel Int
ram Available RAM (Mb) Int
filter Edge feature Choices
filter gradient Choice Gradient
filter sobel Choice Sobel
filter touzi Choice Touzi
filter.touzi.xradius The X Radius Int
filter.touzi.yradius The Y Radius Int
out Feature Output Image Output image
inxml Load otb application from xml file XML input parameters file
outxml Save otb application to xml file XML output parameters file

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).

Edge feature: Choice of edge feature. Available choices are:

  • Gradient
  • Sobel
  • Touzi
  • The X Radius
  • The Y Radius

Feature Output Image: Output image containing the edge 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.


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

otbcli_EdgeExtraction -in qb_RoadExtract.tif -channel 1 -out Edges.tif

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


# Import the otb applications package
import otbApplication

# The following line creates an instance of the EdgeExtraction application
EdgeExtraction = otbApplication.Registry.CreateApplication("EdgeExtraction")

# The following lines set all the application parameters:
EdgeExtraction.SetParameterString("in", "qb_RoadExtract.tif")

EdgeExtraction.SetParameterInt("channel", 1)

EdgeExtraction.SetParameterString("out", "Edges.tif")

# The following line execute the application




This application has been written by OTB-Team.

See Also

These additional resources can be useful for further information:

otb class