how to combine ratios of all color channels of RGB to detect road signs
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Image Analyst
2012-10-15
Just OR the binary images that you got from detecting each color separately:
allSigns = redSigns | blueSigns | yellowSigns;
3 个评论
Image Analyst
2012-10-15
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.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!