Is HSV based algorithm good with light effect?

1 view (last 30 days)
Hello all of you. i have one question that, i am using HSV based algorithm. some one told me that it is not good with light effect. i need your ideas and opinions about HSV algorithm. i need to work for red fruit detection such as tomato. kindly guide me someone has any link or any idea. can HSV deal well with light effect. Thanks

Answers (1)

Image Analyst
Image Analyst on 25 May 2019
Well, any color segmentation algorithm might have problems if the light intensity is changing. For best results you should put in some known color standards, like the X-rite Color Checker chart. If you use that to calibrate your colors, then you'll have less trouble.
That said, the LAB and HSV color spaces separate the color gamut into three dimensions, one of which is an independent intensity axis. So if your intensity changes, you might just look at the S and Hue channels and ignore the Value (Lightness) channel.
See My File Exchange for demos in different color spaces.
Or you can try the Color Thresholder on the Apps tab of the tool ribbon.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!