summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ftnoir_filter_accela/ftnoir_filter_accela.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ftnoir_filter_accela/ftnoir_filter_accela.cpp b/ftnoir_filter_accela/ftnoir_filter_accela.cpp
index d5cd4080..e2073915 100644
--- a/ftnoir_filter_accela/ftnoir_filter_accela.cpp
+++ b/ftnoir_filter_accela/ftnoir_filter_accela.cpp
@@ -22,7 +22,7 @@ static double f(double vec, double thres)
return (vec - thres*4) * 600 + thres*4;
if (vec > thres)
return (vec - thres) * 150 + thres;
- return vec;
+ return pow(vec / thres, 2.0) * thres;
}
void FTNoIR_Filter::filter(const double* input, double *output)