Skip to content

Commit

Permalink
Update bm3d_denoising_invoker_commons.hpp
Browse files Browse the repository at this point in the history
change braces in abs() call
resolves: opencv#1157
  • Loading branch information
berak authored May 11, 2017
1 parent 3b01eaa commit 0c25702
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/xphoto/src/bm3d_denoising_invoker_commons.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 0c25702

Please sign in to comment.