otbcli_ComputeImagesStatistics includes NaNs and background values
Mantis Issue 709, reported by sdinot, assigned to abricier, created: 2013-04-25
Running otbcli_ComputeImagesStatistics on an ENVI image with NaNs in it results means and standard deviation resulting in NaNs (although there are values other than NaNs in each band)
Running otbcli_ComputeImagesStatistics on an ENVI image with background values in it (e.g., -9999) results in mean and standard deviation values influenced by the background value(confirmed in ENVI).
This is a potentially major issue since the output file is required by the SVM classifier, and the means and standard deviations may not represent the actual spectral values in the image.
https://groups.google.com/d/msg/otb-users/_Dd7U8KiVic/iKl85K6dP0cJ
1366922548 - dcdthread on issue:
https://groups.google.com/d/msg/otb-users/yUCelFR2Bj4/HaYIGs_juk0J
1368796750 - aurelienFilters modified in the following commits: #Ignore NaNs http://hg.orfeo-toolbox.org/OTB/rev/72dbeda9cbc6 http://hg.orfeo-toolbox.org/OTB/rev/ea5697b672a4 #Ignore user defined value http://hg.orfeo-toolbox.org/OTB/rev/d704b8e61d0a http://hg.orfeo-toolbox.org/OTB/rev/9f75d20a9d3c Application modified here: http://hg.orfeo-toolbox.org/OTB/rev/bc7d9ea0228a