Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

What is the best value for thresholding for bimodal histogram

Hi all, I have thousands of images with different bimodal histogram as in the picture and trying to do adapative thresholding, just like OTSU but this is not in Grayscale. This is for HSL colourspace, and I'm taking the L value only after separating the channels. I had successfully find the two significant peaks from the histogram as in the picture.

image description

The problem right now, I'm not sure how to get the value for threshold between the bimodal histogram. By taking the average from the two peaks, does not serve the purpose as some of the histogram are not the same size with each other

If anyone has idea to share, I'm glad .