HaralickTextureExtraction

计算输入图像的选定通道上的Haralick纹理特征

描述

此应用程序计算三组Haralick要素 [1] [2] 。

  • 简单:一组8个局部Haralick特征:能量(纹理均匀性)、熵(强度图像随机性的度量)、相关性(像素与其邻域的相关性)、逆差分矩(度量纹理的均匀性)、惯性(像素与其邻域之间的强度对比度)、簇阴影、簇突出度、Haralick相关性;
  • 高级:一组10个高级Haralick特征:均值、方差(衡量纹理异质性)、相异度、和平均值、和方差、和熵、熵差、方差差、IC1、IC2;
  • 更高:一组11个更高的Haralick特征:短期强调(测量纹理清晰度)、长期强调(测量纹理粗糙度)、灰度级非一致性、游程长度非均匀性、游程百分比(测量纹理清晰度的均匀性)、低灰度级运行强调、高灰度级运行强调、短期低灰度级强调、短期高灰度级强调、长期低灰度级强调和长期高灰度级强调。

The documentation of textures (description are formulas) are available in the OTB CookBook (section Textures) and also in corresponding doxygen documentation of filters (see section Detailed Description in doxygen): * simple: otbScalarImageToTexturesFilter * advanced: otbScalarImageToAdvancedTexturesFilter * higher: otbScalarImageToHigherOrderTexturesFilter

参数

Input Image -in image Mandatory
The input image to compute the features on.

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

Computation step -step int Default value: 1
Step (in pixels) to compute output texture values. The first computed pixel position is shifted by (step-1)/2 in both directions.

纹理特征参数

这组参数允许用户定义纹理参数。

X Radius -parameters.xrad int Default value: 2
X Radius of the neighborhood window. The formula used to retrieve the size of the window is 2 * radius + 1.

Y Radius -parameters.yrad int Default value: 2
Y Radius of the neighborhood window. The formula used to retrieve the size of the window is 2 * radius + 1.

X Offset -parameters.xoff int Default value: 1
X Offset

Y Offset -parameters.yoff int Default value: 1
Y Offset

Image Minimum -parameters.min float Default value: 0
Image Minimum

Image Maximum -parameters.max float Default value: 255
Image Maximum

Histogram number of bin -parameters.nbbin int Default value: 8
Histogram number of bin


Texture Set Selection -texture [simple|advanced|higher] Default value: simple
Choice of The Texture Set

  • Simple Haralick Texture Features
    This group of parameters defines the 8 local Haralick texture feature output image. The image channels are: Energy, Entropy, Correlation, Inverse Difference Moment, Inertia, Cluster Shade, Cluster Prominence and Haralick Correlation
  • Advanced Texture Features
    This group of parameters defines the 10 advanced texture feature output image. The image channels are: Mean, Variance, Dissimilarity, Sum Average, Sum Variance, Sum Entropy, Difference of Entropies, Difference of Variances, IC1 and IC2
  • Higher Order Texture Features
    This group of parameters defines the 11 higher order texture feature output image. The image channels are: Short Run Emphasis, Long Run Emphasis, Grey-Level Nonuniformity, Run Length Nonuniformity, Run Percentage, Low Grey-Level Run Emphasis, High Grey-Level Run Emphasis, Short Run Low Grey-Level Emphasis, Short Run High Grey-Level Emphasis, Long Run Low Grey-Level Emphasis and Long Run High Grey-Level Emphasis

Output Image -out image [dtype]
Output image containing the selected texture features.

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

实例

从命令行执行以下操作:

otbcli_HaralickTextureExtraction -in qb_RoadExtract.tif -channel 2 -parameters.xrad 3 -parameters.yrad 3 -texture simple -out HaralickTextures.tif

来自Python的评论:

import otbApplication

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

app.SetParameterString("in", "qb_RoadExtract.tif")
app.SetParameterInt("channel", 2)
app.SetParameterInt("parameters.xrad", 3)
app.SetParameterInt("parameters.yrad", 3)
app.SetParameterString("texture","simple")
app.SetParameterString("out", "HaralickTextures.tif")

app.ExecuteAndWriteOutput()

局限性

特征的计算基于量化输入图像的灰度共生矩阵(GLCM)。因此,量化参数(最小、最大、nbbin)必须适合像素值的范围。

另请参阅

[1] 哈拉里克,罗伯特·M,尚穆甘,卡蒂基扬,等人。用于图像分类的纹理特征。《IEEE系统、人和控制论论文集》,1973年,第6期,第610-621页。
[2] OtbScalarImageToTexturesFilter、otbScalarImageToAdvancedTexturesFilter和otbScalarImageToHigherOrderTexturesFilter类