Update bm3d_denoising_invoker_commons.hpp

change braces in abs() call
resolves: #1157
pull/1158/head
berak 8 years ago committed by GitHub
parent 3b01eaa3d8
commit 0c25702988
  1. 2
      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) 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;
} }
} }

Loading…
Cancel
Save