MorphologicalProfilesAnalysis

对输入图像通道执行形态配置文件分析。

描述

此算法派生自以下出版物:

Martino Pesaresi和Jon Alti Benediktsson,IEEE成员:高分辨率卫星图像形态分割的新方法。《IEEE地球科学和遥感学报》,第39卷,第2期,2001年2月,第309-320页。

根据配置文件选择,应用产品提供:

  • 输入图像的多尺度测地线形态开口或闭合轮廓。
  • 开口轮廓或闭合轮廓的多比例导数。
  • 出现该极大值的多尺度闭合或开启轮廓的最大导数值的参数(称为特征)。
  • 输入图像的标签分类。

分类的行为是:

vt.给出 x_1x_2 两个成员资格值, L_1, L_2 关联的两个标签,以及 \sigma 公差值,则应用以下决策规则:

L = \begin{cases} L_{1} & : x_{1}>x_{2} \quad and \quad x_{1}>\sigma \\ L_{2} & : x_{2}>x_{1} \quad and \quad x_{2}>\sigma \\ 0 & : otherwise. \end{cases}

输出图像可以是:-A N 打开/关闭法线或导数轮廓的多波段图像。-打开/关闭特性的单波段图像。-用于分类的标记图像。

参数

Input Image -in image Mandatory
The input image.

Output Image -out image [dtype] Mandatory
The output image.

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

Structuring Element Type -structype [ball|cross] Default value: ball
Choice of the structuring element type

  • Ball
  • Cross

Profile Size -size int Default value: 5
Size of the profiles

Initial radius -radius int Default value: 5
Initial radius of the structuring element (in pixels)

Radius step -step int Default value: 1
Radius step along the profile (in pixels)

Profile -profile [opening|closing|derivativeopening|derivativeclosing|openingcharacteristics|closingcharacteristics|classification] Default value: opening

  • opening
  • closing
  • derivativeopening
  • derivativeclosing
  • openingcharacteristics
  • closingcharacteristics
  • classification

分类选项

Sigma value for leveling tolerance -profile.classification.sigma float Default value: 1
Sigma value for leveling tolerance


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

实例

从命令行执行以下操作:

otbcli_MorphologicalProfilesAnalysis -in ROI_IKO_PAN_LesHalles.tif -channel 1 -structype ball -profile classification -size 5 -radius 1 -step 1 -profile.classification.sigma 1 -out output.tif

来自Python的评论:

import otbApplication

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

app.SetParameterString("in", "ROI_IKO_PAN_LesHalles.tif")
app.SetParameterInt("channel", 1)
app.SetParameterString("structype","ball")
app.SetParameterString("profile","classification")
app.SetParameterInt("size", 5)
app.SetParameterInt("radius", 1)
app.SetParameterInt("step", 1)
app.SetParameterFloat("profile.classification.sigma", 1)
app.SetParameterString("out", "output.tif")

app.ExecuteAndWriteOutput()

局限性

形态轮廓的生成是不可流畅的,当设置结构元素的半径初始大小和步长时,请注意这一事实。

另请参阅

Otb形态打开配置文件过滤器,otb形态关闭配置文件过滤器,otb配置文件到配置文件派生过滤器,otbProfileDerivativeToMultiScaleCharacteristicsFilter,otbMultiScaleConvexOrConcaveClassificationFilter,类