How to find the ranges for color in HSV method?
Show older comments
Hello,
I find a 'Track color in video.zip' (provided by Image Analyst) from the following website.
In the 40-42 rows of 'track_color_in_video.m', the following contents are given to detect green color.
hThresholds = [0.24, 0.44];
sThresholds = [0.8, 1.0];
vThresholds = [20, 125];
I am confused about:
1. the HSV parameters in Matlab ranges from 0 to 1, why the v parameter is different while this code runs well?
2. I notice the image analyst provides the 'color inspector 3D'. I do not have JAVA(required for this software) installed in my computer. Is there another method to give proper HSV parameter ranges for any color? Or just provide the ranges for red, blue, green colors to be used in this code?
Thanks for your time.
Accepted Answer
More Answers (0)
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!