Computes global mean and standard deviation for each band from a set of images and optionally saves the results in an XML file.
This application computes a global mean and standard deviation for each band of a set of images and optionally saves the results in an XML file. The output XML is intended to be used an input for the TrainImagesClassifier application to normalize samples before learning.
This section describes in details the parameters available for this application. Table 4.116, page 686 presents a summary of these parameters and the parameters keys to be used in command-line and programming languages. Application key is ComputeImagesStatistics.
Parameter key | Parameter type |
Parameter description |
il | Input image list |
Input images |
bv | Float |
Background Value |
out | Output File name |
Output XML file |
inxml | XML input parameters file |
Load otb application from xml file |
outxml | XML output parameters 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:
Each image of the set must contain the same bands as the others (i.e. same types, in the same order).
This application has been written by OTB-Team.
These additional ressources can be useful for further information: