Path: news.mathworks.com!not-for-mail
From: "Prasanna " <pmgunawardana@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to extract yellow color under different iluminations
Date: Wed, 21 Oct 2009 11:36:19 +0000 (UTC)
Organization: Virtusa
Lines: 35
Message-ID: <hbmrnj$iq9$1@fred.mathworks.com>
References: <hbhgam$3ok$1@fred.mathworks.com> <hbhira$906$1@fred.mathworks.com> <76b3be5d-f7d7-466f-b7d6-3d3894a62aa0@33g2000vbe.googlegroups.com>
Reply-To: "Prasanna " <pmgunawardana@gmail.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1256124979 19273 172.30.248.35 (21 Oct 2009 11:36:19 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 21 Oct 2009 11:36:19 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1752223
Xref: news.mathworks.com comp.soft-sys.matlab:578941


Thank you. Now I have a rough idea. I'll do some experiments with this try to figure this out.


ImageAnalyst <imageanalyst@mailinator.com> wrote in message <76b3be5d-f7d7-466f-b7d6-3d3894a62aa0@33g2000vbe.googlegroups.com>...
> On Oct 20, 4:33?am, "Prasanna " <pmgunaward...@gmail.com> wrote:
> > Thank u very much for your immediate reply.I am going to identify the traffic sign (.jpg) image. And it is rectangular shape sign image, no border. back ground of the sign is yellow.middle of the sign contain the "left bend" sign with black color. I have taken the several pictures of that under different light conditions. I want extract the yellow color area and do some further analysis. Unfortunately I don't have the pictures right now. I will send them bit later. Until that if you get a rough idea please share it with me.
> >
> > Regards
> > Prasanna.
> --------------------------------------------------------------------------------------------------------------
> My colleague used to joke that he was amazed that they would pay us
> big salaries when all we do is thresholding.  In some sense it's
> true.  In virtually all image processing situations you go through a
> bunch of operations to identify the things you DO want and DON'T want
> in your scene, but one of the final steps in this potentially long
> process is thresholding.  Most image processing applications look
> something like this:
> 
> (bunch of operations to get an image that can be thresholded)
> threshold the image
> do connected components labeling (if you have multiple regions that
> need to be separately measured) - can use the MATLAB function
> bwconncomp()
> measure the objects - can use the MATLAB function regionprops()
> 
> In you case the first step might be to do some sort of color
> classification.  If you're lucky this may be as easy as simply calling
> rgb2hsv().  If all the pixels that you consider to be "yellow" fall
> into a certain range of gray levels in the hue image, you're home
> free.  Just threshold, throw out spurious yellow objects that aren't
> signs (e.g. maybe they're not large enough) and measure what's left.
> 
> Here's a tutorial I wrote that uses thresholding. You may find it
> helpful if you're new to image processing:
> http://www.mathworks.com/matlabcentral/fileexchange/25157