Sample Extraction
Brief Description
Extracts samples values from an image.
Tags
Learning
Long Description
The application extracts samples values from animage using positions contained in a vector data file.
Parameters
InputImage (in): Support image
Input sampling positions (vec): Vector data file containing samplingpositions. (OGR format)
Output samples (out): Output vector data file storing samplevalues (OGR format). If not given, the input vector data file is updated
Output field names (outfield): Choice between naming method for output fields
Use a prefix and an incremental counter (prefix): Use a prefix and an incremental counter
Output field prefix (outfield.prefix.name): Prefix used to form the field names thatwill contain the extracted values.
Use the given name list (list): Use the given name list
Output field names (outfield.list.names): Full list of output field names.
Field Name (field): Name of the field carrying the class name in the input vectors.
Layer Index (layer): Layer index to read in the input vector file.
Available RAM (Mb) (ram): Available memory for processing (in MB)
Load otb application from xml file (inxml): Load otb application from xml file
Save otb application to xml file (outxml): Save otb application to xml file
Limitations
None
Authors
OTB-Team
See also
Example of use
in: support_image.tif
vec: sample_positions.sqlite
outfield: prefix
outfield.prefix.name: band_
field: label
out: sample_values.sqlite
otbcli_SampleExtraction -in support_image.tif -vec sample_positions.sqlite -outfield prefix -outfield.prefix.name band_ -field label -out sample_values.sqlite