diff --git a/modules/xphoto/src/bm3d_denoising_invoker_commons.hpp b/modules/xphoto/src/bm3d_denoising_invoker_commons.hpp index 65ecaf4b0e..b4f51b14dc 100644 --- a/modules/xphoto/src/bm3d_denoising_invoker_commons.hpp +++ b/modules/xphoto/src/bm3d_denoising_invoker_commons.hpp @@ -89,7 +89,7 @@ inline static void hardThreshold2D(T *dst, T *thrMap, const int &templateWindowS { for (int i = 1; i < templateWindowSizeSq; ++i) { - if (std::abs(dst[i] < thrMap[i])) + if (std::abs(dst[i]) < thrMap[i]) dst[i] = 0; } }