From 0c25702988e293fb9e9beafa8cc2ec7799fc553e Mon Sep 17 00:00:00 2001 From: berak Date: Thu, 11 May 2017 12:06:51 +0200 Subject: [PATCH] Update bm3d_denoising_invoker_commons.hpp change braces in abs() call resolves: #1157 --- modules/xphoto/src/bm3d_denoising_invoker_commons.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/xphoto/src/bm3d_denoising_invoker_commons.hpp b/modules/xphoto/src/bm3d_denoising_invoker_commons.hpp index 65ecaf4b0..b4f51b14d 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; } }