diff options
-rw-r--r-- | filter-accela/ftnoir_filter_accela.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |