2012-10-15 10:17:29 -0600 | commented question | Dynamic threshold value I am new to opencv and to image processing, I need a solution to the above scenario and stuck there. In my work i have to extract region of a palm that is pressed against a glass [ the pressed regions are different to the unpressed region of palm in color ] but the palm color of all human race are not exactly the same in color, that's why the above threshold values (given in question) are specific for specific human race. I want to get threshold value during run time automatically rather than giving it in design time. If otzu is the solution to above problem then can i have any example code in opencv please. |
2012-10-12 11:50:16 -0600 | received badge | ● Editor (source) |
2012-10-12 11:47:48 -0600 | asked a question | Dynamic threshold value In my application I have a problem and don't know how to implement my idea in OpenCV. Could you please direct me how to sort out this issue. I want a dynamic threshold based on hue-sat color, so that I can identify specific locations in an image. Following are the threshold values that work fine for different images I need a generalized approach so that hue-sat can max and min value can be extracted and put in cvInranges() during run time. So far I studied I found that there is a histogram that can be used to determine hue-sat of the image. Could you please guide me or refer me how to get hue-sat maximum and minimum value of specific region during run time so that I can generalize my application. |