1 | initial version |
One solution would be to create two trackbars corresponding to min and max of the range. Move the trackbars around and see what values give you satisfactory result. You will probably discover a few additional things about your picture as well to get ideas on other processing needed.