thresholding base on histograms

712 Views Asked by At

I have an image which I want to turn into a binary one(only black and white) I want to determine the threshold based on the histogram of the image, so in the min point in the hist the thresholding will begin.

for example I have attached a photo of a histogram which I made from some image. how can I access into the histogram in python and set it to choose the min point from the histogram as it thresholding point( in this histogram there are few min points as you can see - one around 210 for example). histogram of an image
I have several images that I want to do this for them so I dont want to determine the threshold by myself every time. Is there a way in python for doing this ?

0

There are 0 best solutions below