Commit 0c257029 authored by berak's avatar berak Committed by GitHub

Update bm3d_denoising_invoker_commons.hpp

change braces in abs() call
resolves: #1157
parent 3b01eaa3
......@@ -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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment