real time red color detection

1 view (last 30 days)
awais rehman
awais rehman on 14 Jul 2012
1) i want to detect pure red color real time for that wat i am using is purered=red-green-blue
then
using purered>/<threshold....e.g.....purered>60 or purered<60
but i have to adjust this threshold manually whenever there's any change e.g change in location of cameras /scenario is there any way to make it auto?
  1 Comment
Yash
Yash on 15 Jul 2012
read the exact pixels an apply thresholding then

Sign in to comment.

Answers (1)

Image Analyst
Image Analyst on 15 Jul 2012
This is asked so often it should probably be on the FAQ. Have you checked the File Exchange for submissions like http://www.mathworks.com/matlabcentral/fileexchange/28757-tracking-red-color-objects-using-matlab?
  2 Comments
awais rehman
awais rehman on 15 Jul 2012
yes but unable to detect
Image Analyst
Image Analyst on 15 Jul 2012
Edited: Image Analyst on 15 Jul 2012
So adapt it. My color segmentation demos might help: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862

Sign in to comment.

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!