5.10.9 Vertex Component Analysis

Find endmembers in hyperspectral images with Vertex Component Analysis

Detailed description

Applies the Vertex Component Analysis to an hyperspectral image to extract endmembers

Parameters

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




Parameter key

Parameter type

Parameter description




in

Input image

Input Image

ne

Int

Number of endmembers

outendm

Output image

Output Endmembers

rand

Int

set user defined seed

inxml

XML input parameters file

Load otb application from xml file

outxml

XML output parameters file

Save otb application to xml file








Figure 5.80: Parameters table for Vertex Component Analysis.

Example

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

otbcli_VertexComponentAnalysis -in cupriteSubHsi.tif -ne 5 -outendm VertexComponentAnalysis.tif double

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 VertexComponentAnalysis application 
VertexComponentAnalysis = otbApplication.Registry.CreateApplication("VertexComponentAnalysis") 
 
# The following lines set all the application parameters: 
VertexComponentAnalysis.SetParameterString("in", "cupriteSubHsi.tif") 
 
VertexComponentAnalysis.SetParameterInt("ne", 5) 
 
VertexComponentAnalysis.SetParameterString("outendm", "VertexComponentAnalysis.tif") 
VertexComponentAnalysis.SetParameterOutputImagePixelType("outendm", 7) 
 
# The following line execute the application 
VertexComponentAnalysis.ExecuteAndWriteOutput()

Limitations

None

Authors

This application has been written by OTB-Team.