http://www.opencv.org.cn/opencvdoc/2.3.2/html/doc/tutorials/imgproc/histograms/histogram_calculation/histogram_calculation.html http://blog.csdn.net/pp5576155/article/details/6948898 http://python.jobbole.com/80860/