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!