How can I detect green colors in an image?
13 ビュー (過去 30 日間)
古いコメントを表示
I'm developing a code to detect objects in an image through the algorithm of Viola and Jones, but it did not work out perfectly because the image has many details. So I decided to start by first detecting the color and then defining the objects through recognition. How can I detect green colors in an image? Since I'm grateful!
0 件のコメント
回答 (2 件)
KALYAN ACHARJYA
2018 年 11 月 27 日
編集済み: KALYAN ACHARJYA
2018 年 11 月 27 日
See color detection is very vast topic, any color generation based on three components R, G,B.
Green color also varies from lower to maximum.
Are you looking for those pixels which having R=0,G=Maximum Level, and B=0? In 8 bit image it would be (0,255,0)
green_component=imageRGB(:,:,2)
4 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!.jpeg)
