Fix histogram calculation in equalizeHist
authorAndrey Kamaev <andrey.kamaev@itseez.com>
Thu, 10 Jan 2013 10:45:00 +0000 (14:45 +0400)
committerAndrey Kamaev <andrey.kamaev@itseez.com>
Thu, 10 Jan 2013 10:48:31 +0000 (14:48 +0400)
issue #2678

modules/imgproc/src/histogram.cpp

index 3f0c3da..864b49b 100644 (file)
@@ -3023,7 +3023,7 @@ public:
                 localHistogram[t0]++; localHistogram[t1]++;
             }
 
-            for (; x < width; ++x, ++ptr)
+            for (; x < width; ++x)
                 localHistogram[ptr[x]]++;
         }