EdgeExtraction

此应用程序在输入图像选定通道的每个像素上计算边缘特征

描述

这个应用程序在选定的输入通道上计算边缘特征。它使用不同的过滤器,如渐变、Sobel和Touzi

参数

Input Image -in image Mandatory
The input image on which the features are computed.

Feature Output Image -out image [dtype] Mandatory
Output image containing the edge features.

Selected Channel -channel int Default value: 1
The selected channel index

Edge feature -filter [gradient|sobel|touzi] Default value: gradient
Choice of edge feature

  • Gradient
    This filter computes the gradient magnitude of the image at each pixel.
  • Sobel
    This filter uses the Sobel operator to calculate the image gradient and then finds the magnitude of this gradient vector.
  • Touzi
    This filter is more suited to radar images. It has a spatial parameter to avoid speckle noise perturbations. The larger the radius is, the less sensitive the filter is to the speckle noise, but micro edge will be missed.

Touzi选项

X radius of the neighborhood -filter.touzi.xradius int Default value: 1

Y radius of the neighborhood -filter.touzi.yradius int Default value: 1


Available RAM (MB) -ram int Default value: 256
Available memory for processing (in MB).

实例

从命令行执行以下操作:

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

来自Python的评论:

import otbApplication

app = otbApplication.Registry.CreateApplication("EdgeExtraction")

app.SetParameterString("in", "qb_RoadExtract.tif")
app.SetParameterInt("channel", 1)
app.SetParameterString("out", "Edges.tif")

app.ExecuteAndWriteOutput()

另请参阅

OTB级