Threshold values problem
In my program I worked with leaf image. i use threshold values for obtaining green regions in HSV color space. H: 45 to 95 s: 55 to 110
and for erosion and dilation i specified erosion_size and dilation_size as 20,10. now the problem is i have another image of leaf taken with less light intensity. Now the threhold valuers needs to be changed. What i have to do when i work on real-time image? Whether i should not use thresholding ? if so any other alternative for that?