Update samples/python2/hist.py
authorAbid K <abidrahman2@gmail.com>
Tue, 19 Feb 2013 14:01:53 +0000 (19:31 +0530)
committerAbid K <abidrahman2@gmail.com>
Tue, 19 Feb 2013 14:01:53 +0000 (19:31 +0530)
commit96b2898f38604ef54b740e9ea7e9dc0d3c7f5ff2
tree6a22ac48ece7af6667670689a7fd301f6d412941
parent39baa2237e9c968aa05d77afed2127f6643ae582
Update 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.
samples/python2/hist.py