Commit 8c29ce40 authored by Antoine Regimbeau's avatar Antoine Regimbeau
Browse files

BUG: bug fix for accumulate function

No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
...@@ -550,7 +550,7 @@ private: ...@@ -550,7 +550,7 @@ private:
lumCoef[1] = GetParameterFloat("mode.lum.gre.coef"); lumCoef[1] = GetParameterFloat("mode.lum.gre.coef");
lumCoef[2] = GetParameterFloat("mode.lum.blu.coef"); lumCoef[2] = GetParameterFloat("mode.lum.blu.coef");
// Normalize those coeffs // 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); assert(sum>0);
for (int i = 0 ; i<3 ; i++ ) for (int i = 0 ; i<3 ; i++ )
{ {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment