Application ComputeImagesStatistics gives wrong standard deviation
Mantis Issue 1076, reported by gpasero, assigned to gpasero, created: 2015-09-23
The application ComputeImagesStatistics gives wrong standard deviation. It happens for multiband images.
For a 4 band image, there is a factor 2 between stddev computed by the application and the real stddev.
This fix could impact a LOT of classification baselines, so let's fix it once for all.
The problem is mostly here : Modules/Applications/AppClassification/app/otbComputeImagesStatistics.cxx:143
The factor 'nbBands' has nothing to do here.
The formula that is implemented should be this one : https://en.wikipedia.org/wiki/Pooled_variance
1443078372 - julienduplicate of 1056
1447063828 - gpaseroSee #1056 (closed)