how to combine ratios of all color channels of RGB to detect road signs
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
hello, using RGB color detection, I can detect red, blue and yellow sign separately. for instance to detect red road signs, I should find the ratio of red and green.
Red color road sign: red channel/green channel Blue color road sign: blue /green channel however, this algorithm only works separately. How can I combine all of three ratios so that it can detect blue ,yellow and blue road signs respectively.
0 commentaires
Réponse acceptée
Image Analyst
le 15 Oct 2012
Just OR the binary images that you got from detecting each color separately:
allSigns = redSigns | blueSigns | yellowSigns;
3 commentaires
Image Analyst
le 15 Oct 2012
You said "I can detect red, blue and yellow sign separately" so I believed you. I believed that you have some algorithm that does that and produces a binary image which is like a map of where in the image pixels of those colors lie. One image for where the red pixels lie, one for the blue pixels, and one for the yellow pixels. To get a map of where any of them lie, regardless of the color, OR them together.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Image Processing and Computer Vision dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!