Itseez/opencv — pull request #504 by abidrahmank (2013-02-19 13:33:58+00:00)
Title: corrected error in range of calcHist function in /samples/python2/hist.py

range in calcHist() changed from [0,255] to [0,256]. Otherwise, it won't count pixels with value 255. It can be verified taking sum of histogram values and checking it with image size.