How to find histogram of image in python? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to find histogram of image in python?

I do not need pre defined libraries, can i have manually written code in java..

15th Mar 2019, 8:59 PM
Manikant Gautam
Manikant Gautam - avatar
1 Answer
0
split the whole histogram to 16 sub-parts and value of each sub-part is the sum of all pixel count in it. This each sub-part is called ā€œBINā€. In first case, number of bins where 256 (one for each pixel) while in second case, it is only 16. BINS is represented by the termĀ histSizeĀ in OpenCV docs. Source: https://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_imgproc/py_histograms/py_histogram_begins/py_histogram_begins.html
15th Mar 2019, 10:45 PM
John Tsaou
John Tsaou - avatar