FastLED 3.9.15
Loading...
Searching...
No Matches

◆ recompute()

template<typename T, fl::size N = 0>
T fl::detail::BilateralFilterImpl< T, N >::recompute ( T reference)
inlineprivate

Definition at line 43 of file bilateral_filter_impl.h.

43 {
44 fl::size n = mBuf.size();
45
47
48 if (two_sigma_sq == T(0)) {
50 return mLastValue;
51 }
52
53 T weighted_sum = T(0);
54 T weight_total = T(0);
55
56 for (fl::size i = 0; i < n; ++i) {
57 T diff = mBuf[i] - reference;
61 }
62
63 if (!(weight_total == T(0))) {
65 } else {
67 }
68 return mLastValue;
69 }
enable_if< is_fixed_point< T >::value, T >::type exp(T x) FL_NOEXCEPT

References fl::exp(), mBuf, mLastValue, and mSigmaRange.

Referenced by update(), and update().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: