1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-19 02:16:34 +08:00

Update bm3d_denoising_invoker_commons.hpp

change braces in abs() call
resolves: #1157
This commit is contained in:
berak
2017-05-11 12:06:51 +02:00
committed by GitHub
parent 3b01eaa3d8
commit 0c25702988

View File

@@ -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;
}
}