Commit 6bca9e84 authored by Maksim Shabunin's avatar Maksim Shabunin

Merge pull request #1158 from berak:patch-1

parents 3b01eaa3 0c257029
......@@ -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