How do I plot a 32-Bin Histogram for a Grayscale Image in Python using OpenCV
问题 I have been having difficulty trying to generate a histogram for a 640x480 grayscale image I am working with. I am using Python 2.7.3, OpenCV 2.4.6 (Python bindings) and Numpy The image below was generated from the same image, using an executable software tool (programmed in C++) The properties for this histogram were: bins = 50 hist_width = 250 normalised_height_max = 50 The image specs are therefore 250x50 I have consulted this documentation: Histogram Calculation in OpenCV http://docs