I wanted to binarize a color image in HSV color space using inRange function of opencv.
I found that with some RGB values, hue value drastically changes. For e.g. 1) RGB Value: 56, 40, 39 Its HSV Value: 2, 77, 56 2) RGB Value: 56, 40, 41 Its HSV Value: 178, 73, 56
So, in this case both RGB colors are very close and also looks similar but its Hue value has huge difference, now if we use Hue range from 2 to 178 for binarization than its wrong.
So what should be the right way to binarize and image in HSV color space using threshold range.