Commit 6131a847 authored by Andrey Kamaev's avatar Andrey Kamaev

Fix histogram calculation in equalizeHist

issue #2678
parent b81d1b25
......@@ -3023,7 +3023,7 @@ public:
localHistogram[t0]++; localHistogram[t1]++;
}
for (; x < width; ++x, ++ptr)
for (; x < width; ++x)
localHistogram[ptr[x]]++;
}
......
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