# ComputeImagesStatistics

## Brief Description

Computes global mean and standard deviation for each band from a set of images and optionally saves the results in an XML file.

## Tags

Learning,Image Analysis

## Long Description

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.

## Parameters

- [param] -il <string> List of input images filenames.. Mandatory: True. Default Value: "0"
- [param] -bv <float> Background value to ignore in statistics computation.. Mandatory: False. Default Value: "0.0"
- [param] -out <string> XML filename where the statistics are saved for future reuse.. Mandatory: False. Default Value: ""
- [param] -inxml <string> Load otb application from xml file. Mandatory: False. Default Value: ""
- [param] -outxml <string> Save otb application to xml file. Mandatory: False. Default Value: ""

## Limitations

Each image of the set must contain the same bands as the others (i.e. same types, in the same order).

## Authors

OTB-Team

## See Also

Documentation of the TrainImagesClassifier application.

## Example of use

- il: QB_1_ortho.tif

- out: EstimateImageStatisticsQB1.xml