How to determine an image with strong or weak illumination in OpenCV?
Hi..
I would like to develop an object tracking like a paper below:
[1] Li, J., Zhang, J., Zhou, Z., Guo, W., Wang, B., & Zhao, Q. (2011, October). Object tracking using improved Camshift with SURF method. In Open-Source Software for Scientific Computation (OSSC), 2011 International Workshop on (pp. 136-141). IEEE.
in this paper, the new algorithm being able to adjust the thresholds of S and V adaptively against the environment changes. Specifically, when under a strong illumination, the algorithm ignores those pixels with high S values, and when under weak illumination it ignores those with low S.[p:138]
Anybody knows how to determine an image is under strong or weak illumination in OpenCV? What value should I get to represent an image is under strong illumination or weak illumination?
Thanks in advance
I haven't read the paper, but as you explain it, they just convert the image to HSV and ignore pixels with high and low values in the S plane. You can convert the image to HSV with the cvtColor function (see http://docs.opencv.org/modules/imgproc/doc/miscellaneous_transformations.html?highlight=cvt#cvtcolor).
How can you do this solution in Java?