VertexComponentAnalysis¶
Given a set of mixed spectral vectors, estimate reference substances also known as endmembers using the Vertex Component Analysis algorithm.
Description¶
Apply the Vertex Component Analysis [1] to an hyperspectral image to extract endmembers. Given a set of mixed spectral vectors (multispectral or hyperspectral), the application estimates the spectral signature of reference substances also known as endmembers.
Parameters¶
Input Image -in image
Mandatory
Input hyperspectral data cube
Output Endmembers -outendm image [dtype]
Mandatory
Endmembers, stored in a one-line multi-spectral image.Each pixel corresponds to one endmembers and each band values corresponds to the spectral signature of the corresponding endmember.
Number of endmembers -ne int
Default value: 1
The number of endmembers to extract from the hyperspectral image.
Random seed -rand int
Set a specific random seed with integer value.
Examples¶
From the command-line:
otbcli_VertexComponentAnalysis -in cupriteSubHsi.tif -ne 5 -outendm VertexComponentAnalysis.tif double
From Python:
import otbApplication
app = otbApplication.Registry.CreateApplication("VertexComponentAnalysis")
app.SetParameterString("in", "cupriteSubHsi.tif")
app.SetParameterInt("ne", 5)
app.SetParameterString("outendm", "VertexComponentAnalysis.tif")
app.SetParameterOutputImagePixelType("outendm", 7)
app.ExecuteAndWriteOutput()