Extracts samples values from an image.
The application extracts samples values from animage using positions contained in a vector data file.
This section describes in details the parameters available for this application. Table 4.132, page 734 presents a summary of these parameters and the parameters keys to be used in command-line and programming languages. Application key is SampleExtraction.
Parameter key | Parameter type |
Parameter description |
in | Input image |
InputImage |
vec | Input File name |
Input sampling positions |
out | Output File name |
Output samples |
outfield | Choices |
Output field names |
outfield prefix | Choice |
Use a prefix and an incremental counter |
outfield list | Choice |
Use the given name list |
outfield.prefix.name | String |
Output field prefix |
outfield.list.names | String list |
Output field names |
field | String |
Field Name |
layer | Int |
Layer Index |
ram | Int |
Available RAM (Mb) |
inxml | XML input parameters file |
Load otb application from xml file |
outxml | XML output parameters file |
Save otb application to xml file |
|
||
|
||
|
||
|
||
|
Input sampling positions Vector data file containing samplingpositions. (OGR format)
Output samples Output vector data file storing samplevalues (OGR format). If not given, the input vector data file is updated
Output field names Choice between naming method for output fields Available choices are:
Field Name Name of the field carrying the classname in the input vectors. This field is copied to output.
Layer Index Layer index to read in the input vector file.
Available RAM (Mb) Available memory for processing (in MB)
Load otb application from xml file Load otb application from xml file
Save otb application to xml file Save otb application to xml file
To run this example in command-line, use the following:
To run this example from Python, use the following code snippet:
None
This application has been written by OTB-Team.