5.6.6 Haralick Texture Extraction

Computes textures on every pixel of the input image selected channel

Detailed description

This application computes Haralick, advanced and higher order textures on a mono band image

Parameters

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




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

Int

X Radius

parameters.yrad

Int

Y Radius

parameters.xoff

Int

X Offset

parameters.yoff

Int

Y Offset

parameters.min

Float

Image Minimum

parameters.max

Float

Image Maximum

parameters.nbbin

Int

Histogram number of bin

texture

Choices

Texture Set Selection

texture simple

Choice

Simple Haralick Texture Features

texture advanced

Choice

Advanced Texture Features

texture higher

Choice

Higher Order Texture Features

out

Output image

Output Image

inxml

XML input parameters file

Load otb application from xml file

outxml

XML output parameters file

Save otb application to xml file








Figure 5.42: Parameters table for Haralick 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 texture parameters.

Texture Set Selection Choice of The Texture Set Available choices are:

Output Image Output image containing the selected 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_HaralickTextureExtraction -in qb_RoadExtract.tif -channel 2 -parameters.xrad 3 -parameters.yrad 3 -texture simple -out HaralickTextures.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 HaralickTextureExtraction application 
HaralickTextureExtraction = otbApplication.Registry.CreateApplication("HaralickTextureExtraction") 
 
# The following lines set all the application parameters: 
HaralickTextureExtraction.SetParameterString("in", "qb_RoadExtract.tif") 
 
HaralickTextureExtraction.SetParameterInt("channel", 2) 
 
HaralickTextureExtraction.SetParameterInt("parameters.xrad", 3) 
 
HaralickTextureExtraction.SetParameterInt("parameters.yrad", 3) 
 
HaralickTextureExtraction.SetParameterString("texture","simple") 
 
HaralickTextureExtraction.SetParameterString("out", "HaralickTextures.tif") 
 
# The following line execute the application 
HaralickTextureExtraction.ExecuteAndWriteOutput()

Limitations

None

Authors

This application has been written by OTB-Team.

See also

These additional ressources can be useful for further information: