Itseez/opencv — pull request #505 by abidrahmank (2013-02-19 14:02:35+00:00)
Title: Updated 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.