mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-19 19:44:14 +08:00
Update bm3d_denoising_invoker_commons.hpp
change braces in abs() call resolves: #1157
This commit is contained in:
@@ -89,7 +89,7 @@ inline static void hardThreshold2D(T *dst, T *thrMap, const int &templateWindowS
|
|||||||
{
|
{
|
||||||
for (int i = 1; i < templateWindowSizeSq; ++i)
|
for (int i = 1; i < templateWindowSizeSq; ++i)
|
||||||
{
|
{
|
||||||
if (std::abs(dst[i] < thrMap[i]))
|
if (std::abs(dst[i]) < thrMap[i])
|
||||||
dst[i] = 0;
|
dst[i] = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user