diff --git a/Modules/Applications/AppFiltering/app/otbContrastEnhancement.cxx b/Modules/Applications/AppFiltering/app/otbContrastEnhancement.cxx index dbcc3f38d6d254e4819e8b7528007f7fed4c7e82..46cbd9082d36e84295121fd10c7f6acffcd2f063 100644 --- a/Modules/Applications/AppFiltering/app/otbContrastEnhancement.cxx +++ b/Modules/Applications/AppFiltering/app/otbContrastEnhancement.cxx @@ -550,7 +550,7 @@ private: lumCoef[1] = GetParameterFloat("mode.lum.gre.coef"); lumCoef[2] = GetParameterFloat("mode.lum.blu.coef"); // Normalize those coeffs - float sum = std::accumulate( lumCoef.begin() , lumCoef.end() , 0 ); + float sum = std::accumulate( lumCoef.begin() , lumCoef.end() , 0.0 ); assert(sum>0); for (int i = 0 ; i<3 ; i++ ) {