Be the first to rate this file! 34 Downloads (last 30 days) File Size: 1.48 KB File ID: #30546

Tracking Yellow Color

by

 

This code tracks yellow color.

| Watch this File

File Information
Description

When we are using RGB color space,we can differentiate between the red,blue and green color. But when comes to detecting yellow color, this code will detect yellow color in RGB color space.
I hopw this would help.

MATLAB release MATLAB 7.11 (R2010b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (5)
09 Jun 2011 anju

Thnx Avaneet , i shall drop u an email with more info ..........

08 Jun 2011 Avaneet Ranjan

Hey anju contact me on avneetranjan@gmail.com will try as i can...actually i was currently working on HUE....
Thanx

08 Jun 2011 anju

Hi Avaneet,

Would you be able to help on me on the matlab coding for the object tracking of the using Hue value ? As i am new to matlab i couldnt find much details on it .

My object is to perform color calibration in order to define the upper and lower limit of the HUE value for to detect the color at any light intensity .

13 May 2011 Avaneet Ranjan

Usha this code doesnt get u the yellow color.
I used basic color theory...
first we r working on RGB color space.
second i took the complement of the current image.. this brings u to the CMY color space.
the third plane of this color space gives u yellow color.
Now y i did the subtraction is cos if u see i subtracted current frame by its gray color then that maximizes the color in that plane..

13 May 2011 usha kiran peddala

what does this statement do
imsubtract(data(:,:,3), rgb2gray(data)) ?

how did u get the yellow color by subtraction

Contact us