# ComputeOGRLayersFeaturesStatistics

## Brief Description

Compute statistics of the features in a set of OGR Layers

## Tags

Segmentation

## Long Description

Compute statistics (mean and standard deviation) of the features in a set of OGR Layers, and write them in an XML file. This XML file can then be used by the training application.

## Parameters

- [param] -inshp <string> Name of the input shapefile. Mandatory: True. Default Value: ""
- [param] -outstats <string> XML file containing mean and variance of each feature.. Mandatory: True. 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: ""
[choice] -feat List of features to consider for statistics. . Mandatory: True. Default Value: ""

## Limitations

Experimental. For now only shapefiles are supported.

## Authors

David Youssefi during internship at CNES

## See Also

OGRLayerClassifier,TrainOGRLayersClassifier

## Example of use

- inshp: vectorData.shp

- outstats: results.xml

- feat: perimeter