Lowest price ever! Learn Generative AI for 48% less!
Get my discount+ 1
How to find histogram of image in python?
I do not need pre defined libraries, can i have manually written code in java..
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