Hi all, I am trying to write a function for automatic threshold value but I don't know how to get them from histogram. For example I have this input image:[IMG]http://i61.tinypic.com/dblke0.jpg[/IMG]
I convert input img to other color space (HSV) then I split channels and then I print out on histogram all channels H-blue line, S-green line, V-red line. [IMG]http://i61.tinypic.com/15ckh2b.jpg[/IMG]. How would be function for automatic binarization (thresholding values)?