Fix histogram calculation in equalizeHist

issue #2678
This commit is contained in:
Andrey Kamaev 2013-01-10 14:45:00 +04:00
parent b81d1b25c7
commit 6131a847a2

View File

@ -3023,7 +3023,7 @@ public:
localHistogram[t0]++; localHistogram[t1]++;
}
for (; x < width; ++x, ++ptr)
for (; x < width; ++x)
localHistogram[ptr[x]]++;
}