aboutsummaryrefslogtreecommitdiff
path: root/src/scalar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/scalar.c')
-rw-r--r--src/scalar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scalar.c b/src/scalar.c
index 165cb51..139cd05 100644
--- a/src/scalar.c
+++ b/src/scalar.c
@@ -458,7 +458,7 @@ int xtract_sharpness(const float *data, const int N, const void *argv, float *re
while(n--){
sl = pow(data[n], 0.23);
g = (n < 15 ? 1.f : 0.066 * exp(0.171 * n));
- temp = n * g * sl;
+ temp += n * g * sl;
}
*result = 0.11 * temp / N;