Fix histogram calculation in equalizeHist

issue #2678
pull/284/head
Andrey Kamaev 12 years ago
parent b81d1b25c7
commit 6131a847a2
  1. 2
      modules/imgproc/src/histogram.cpp

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

Loading…
Cancel
Save