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 th