Counting Colored Objects in an Image

2 views (last 30 days)
Hello, I need help creating a code that can count and keep track of red and green colors in an image. Every time the program detects a red or green object it will put it a vector to be stored. If anyone can help me with this I would appreciate it because I am a novice to Matlab programming. Thank you for your time.

Accepted Answer

Image Analyst
Image Analyst on 15 Oct 2013
See my File Exchange for color segmentation demos: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862
Also check the File Exchange where there are lots of tracking demos, like video tracking of red lasers or red balls, etc.
  17 Comments
sana saleeme
sana saleeme on 26 Apr 2016
image anylist this sign ~ always create problem for me.and stop running my code.kindly help me.
Image Analyst
Image Analyst on 26 Apr 2016
I'll try, but you forgot to attach your code.

Sign in to comment.

More Answers (1)

Yatin
Yatin on 15 Oct 2013
Hello,
May be the link below will be useful. It is based on the segmentation of the image based on colors. The link is : http://www.mathworks.com/matlabcentral/newsreader/view_thread/287764

Categories

Find more on Image Processing Toolbox 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!