From 3e12d7ff6cea9e90ace691bc2470f2182299f1e2 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 31 Jul 2016 10:28:07 +0200 Subject: filter/accela: fix typo --- filter-accela/ftnoir_filter_accela.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filter-accela/ftnoir_filter_accela.cpp b/filter-accela/ftnoir_filter_accela.cpp index 11cb1aab..c677e1b5 100644 --- a/filter-accela/ftnoir_filter_accela.cpp +++ b/filter-accela/ftnoir_filter_accela.cpp @@ -102,7 +102,7 @@ void FTNoIR_Filter::filter(const double* input, double *output) const double vec_ = std::max(0., fabs(vec) - dz); const double thres = i >= 3 ? rot_t : trans_t; const double out_ = vec_ / thres; - const double out = i >= 3 && std::fabs(s.max_rot_nl - 1) > 5e-3 + const double out = i >= 3 && std::fabs(rot_nl - 1) > 5e-3 ? (out_ * std::min(1., std::pow(out_/s.max_rot_nl, rot_nl)) * s.max_rot_nl) : out_; const double val = m.getValue(float(out)); -- cgit v1.2.3