<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263510</link>
    <title>MATLAB Central Newsreader - How to extract yellow color under different iluminations</title>
    <description>Feed for thread: How to extract yellow color under different iluminations</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Mon, 19 Oct 2009 10:51:02 -0400</pubDate>
      <title>How to extract yellow color under different iluminations</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263510#688053</link>
      <author>Prasanna </author>
      <description>Hi,&lt;br&gt;
&lt;br&gt;
How can I extract the yellow color regions from a .Jpg file under different illumination conditions? Please help me with this. Send me the codes or the method.&lt;br&gt;
&lt;br&gt;
Regards&lt;br&gt;
Prasanna</description>
    </item>
    <item>
      <pubDate>Mon, 19 Oct 2009 11:34:02 -0400</pubDate>
      <title>Re: How to extract yellow color under different iluminations</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263510#688070</link>
      <author>John D'Errico</author>
      <description>&quot;Prasanna &quot; &amp;lt;pmgunawardana@gmail.com&amp;gt; wrote in message &amp;lt;hbhgam$3ok$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; How can I extract the yellow color regions from a .Jpg file under different illumination conditions? Please help me with this. Send me the codes or the method.&lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
The &quot;yellow&quot; color region alone of color space is&lt;br&gt;
non-simple to describe, that will depend on the&lt;br&gt;
color space you might work in. A blob is the best&lt;br&gt;
description.&lt;br&gt;
&lt;br&gt;
Now, you want to change some nominal illuminant,&lt;br&gt;
then to recover from the original scene or from a&lt;br&gt;
print, which pixels fall into that nondescript blob?&lt;br&gt;
This is a non-simple problem, made worse because&lt;br&gt;
of your less than complete description of the&lt;br&gt;
problem. Which illuminant must be changed? That&lt;br&gt;
of the original scene? That of the environment in&lt;br&gt;
which we will view a print, or the monitor? Or&lt;br&gt;
maybe change the monitor white-point? Any of&lt;br&gt;
these can be difficult problems to solve, depending&lt;br&gt;
on how well you wish to do the job.&lt;br&gt;
&lt;br&gt;
For example, if it is a question of print viewing, then&lt;br&gt;
we need an accurate characterization of the printer.&lt;br&gt;
We will need to know the device gamut for how this&lt;br&gt;
device prints yellows. Which pixels were out of gamut,&lt;br&gt;
and exactly what strategy is used to move those&lt;br&gt;
colors to the device gamut. (There is more than one&lt;br&gt;
such strategy to be found.) Alternatively, you need&lt;br&gt;
a mapping that will predict where each color in&lt;br&gt;
the original color space ends up after it is printed.&lt;br&gt;
Finally, we will need to have a good specification of&lt;br&gt;
the region of a color space where the color yellow&lt;br&gt;
lives.&lt;br&gt;
&lt;br&gt;
Sp yeah, right, we'll get right on it. Stop work on&lt;br&gt;
all else and send you code for this immediately.&lt;br&gt;
If you really expect an answer, then it will at most&lt;br&gt;
be in the form of some ideas on what to do. Even&lt;br&gt;
for that, you MUST give an adequate description&lt;br&gt;
of the problem you are trying to solve.&lt;br&gt;
&lt;br&gt;
John</description>
    </item>
    <item>
      <pubDate>Mon, 19 Oct 2009 13:47:09 -0400</pubDate>
      <title>Re: How to extract yellow color under different iluminations</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263510#688099</link>
      <author>ImageAnalyst</author>
      <description>LIke John said, not so easy, and there is no general answer.  I&lt;br&gt;
suggest you follow his advice and give a description of what you&lt;br&gt;
want.  Part of that would be posting several images somewhere (on a&lt;br&gt;
free image hosting website such as flickr.com).  It's easier to give&lt;br&gt;
advice on color segmentation when you have the images to look at.&lt;br&gt;
P.S. Perhaps you'd like to play around with the really nice 3D gamut&lt;br&gt;
visualization plugin for ImageJ here:&lt;br&gt;
&lt;a href=&quot;http://rsb.info.nih.gov/ij/plugins/color-inspector.html&quot;&gt;http://rsb.info.nih.gov/ij/plugins/color-inspector.html&lt;/a&gt;&lt;br&gt;
Maybe you'll see your yellow cluster well isolated.&lt;br&gt;
&lt;br&gt;
Perhaps you'd like to review one MATLAB implementation for color&lt;br&gt;
segmentation.  Maybe it will work for you - maybe not.&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/products/demos/image/color_seg_k/ipexhistology.html&quot;&gt;http://www.mathworks.com/products/demos/image/color_seg_k/ipexhistology.html&lt;/a&gt;</description>
    </item>
    <item>
      <pubDate>Tue, 20 Oct 2009 08:33:02 -0400</pubDate>
      <title>Re: How to extract yellow color under different iluminations</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263510#688313</link>
      <author>Prasanna </author>
      <description>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 &quot;left bend&quot; 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.&lt;br&gt;
&lt;br&gt;
Regards&lt;br&gt;
Prasanna.&lt;br&gt;
&lt;br&gt;
&quot;John D'Errico&quot; &amp;lt;woodchips@rochester.rr.com&amp;gt; wrote in message &amp;lt;hbhira$906$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;Prasanna &quot; &amp;lt;pmgunawardana@gmail.com&amp;gt; wrote in message &amp;lt;hbhgam$3ok$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; Hi,&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; How can I extract the yellow color regions from a .Jpg file under different illumination conditions? Please help me with this. Send me the codes or the method.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; The &quot;yellow&quot; color region alone of color space is&lt;br&gt;
&amp;gt; non-simple to describe, that will depend on the&lt;br&gt;
&amp;gt; color space you might work in. A blob is the best&lt;br&gt;
&amp;gt; description.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Now, you want to change some nominal illuminant,&lt;br&gt;
&amp;gt; then to recover from the original scene or from a&lt;br&gt;
&amp;gt; print, which pixels fall into that nondescript blob?&lt;br&gt;
&amp;gt; This is a non-simple problem, made worse because&lt;br&gt;
&amp;gt; of your less than complete description of the&lt;br&gt;
&amp;gt; problem. Which illuminant must be changed? That&lt;br&gt;
&amp;gt; of the original scene? That of the environment in&lt;br&gt;
&amp;gt; which we will view a print, or the monitor? Or&lt;br&gt;
&amp;gt; maybe change the monitor white-point? Any of&lt;br&gt;
&amp;gt; these can be difficult problems to solve, depending&lt;br&gt;
&amp;gt; on how well you wish to do the job.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; For example, if it is a question of print viewing, then&lt;br&gt;
&amp;gt; we need an accurate characterization of the printer.&lt;br&gt;
&amp;gt; We will need to know the device gamut for how this&lt;br&gt;
&amp;gt; device prints yellows. Which pixels were out of gamut,&lt;br&gt;
&amp;gt; and exactly what strategy is used to move those&lt;br&gt;
&amp;gt; colors to the device gamut. (There is more than one&lt;br&gt;
&amp;gt; such strategy to be found.) Alternatively, you need&lt;br&gt;
&amp;gt; a mapping that will predict where each color in&lt;br&gt;
&amp;gt; the original color space ends up after it is printed.&lt;br&gt;
&amp;gt; Finally, we will need to have a good specification of&lt;br&gt;
&amp;gt; the region of a color space where the color yellow&lt;br&gt;
&amp;gt; lives.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Sp yeah, right, we'll get right on it. Stop work on&lt;br&gt;
&amp;gt; all else and send you code for this immediately.&lt;br&gt;
&amp;gt; If you really expect an answer, then it will at most&lt;br&gt;
&amp;gt; be in the form of some ideas on what to do. Even&lt;br&gt;
&amp;gt; for that, you MUST give an adequate description&lt;br&gt;
&amp;gt; of the problem you are trying to solve.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; John</description>
    </item>
    <item>
      <pubDate>Tue, 20 Oct 2009 12:53:37 -0400</pubDate>
      <title>Re: How to extract yellow color under different iluminations</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263510#688371</link>
      <author>ImageAnalyst</author>
      <description>On Oct 20, 4:33&#160;am, &quot;Prasanna &quot; &amp;lt;pmgunaward...@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; 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 &quot;left bend&quot; 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.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Regards&lt;br&gt;
&amp;gt; Prasanna.&lt;br&gt;
--------------------------------------------------------------------------------------------------------------&lt;br&gt;
My colleague used to joke that he was amazed that they would pay us&lt;br&gt;
big salaries when all we do is thresholding.  In some sense it's&lt;br&gt;
true.  In virtually all image processing situations you go through a&lt;br&gt;
bunch of operations to identify the things you DO want and DON'T want&lt;br&gt;
in your scene, but one of the final steps in this potentially long&lt;br&gt;
process is thresholding.  Most image processing applications look&lt;br&gt;
something like this:&lt;br&gt;
&lt;br&gt;
(bunch of operations to get an image that can be thresholded)&lt;br&gt;
threshold the image&lt;br&gt;
do connected components labeling (if you have multiple regions that&lt;br&gt;
need to be separately measured) - can use the MATLAB function&lt;br&gt;
bwconncomp()&lt;br&gt;
measure the objects - can use the MATLAB function regionprops()&lt;br&gt;
&lt;br&gt;
In you case the first step might be to do some sort of color&lt;br&gt;
classification.  If you're lucky this may be as easy as simply calling&lt;br&gt;
rgb2hsv().  If all the pixels that you consider to be &quot;yellow&quot; fall&lt;br&gt;
into a certain range of gray levels in the hue image, you're home&lt;br&gt;
free.  Just threshold, throw out spurious yellow objects that aren't&lt;br&gt;
signs (e.g. maybe they're not large enough) and measure what's left.&lt;br&gt;
&lt;br&gt;
Here's a tutorial I wrote that uses thresholding. You may find it&lt;br&gt;
helpful if you're new to image processing:&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/matlabcentral/fileexchange/25157&quot;&gt;http://www.mathworks.com/matlabcentral/fileexchange/25157&lt;/a&gt;</description>
    </item>
    <item>
      <pubDate>Wed, 21 Oct 2009 11:36:19 -0400</pubDate>
      <title>Re: How to extract yellow color under different iluminations</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263510#688633</link>
      <author>Prasanna </author>
      <description>Thank you. Now I have a rough idea. I'll do some experiments with this try to figure this out.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
ImageAnalyst &amp;lt;imageanalyst@mailinator.com&amp;gt; wrote in message &amp;lt;76b3be5d-f7d7-466f-b7d6-3d3894a62aa0@33g2000vbe.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; On Oct 20, 4:33?am, &quot;Prasanna &quot; &amp;lt;pmgunaward...@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; 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 &quot;left bend&quot; 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.&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Regards&lt;br&gt;
&amp;gt; &amp;gt; Prasanna.&lt;br&gt;
&amp;gt; --------------------------------------------------------------------------------------------------------------&lt;br&gt;
&amp;gt; My colleague used to joke that he was amazed that they would pay us&lt;br&gt;
&amp;gt; big salaries when all we do is thresholding.  In some sense it's&lt;br&gt;
&amp;gt; true.  In virtually all image processing situations you go through a&lt;br&gt;
&amp;gt; bunch of operations to identify the things you DO want and DON'T want&lt;br&gt;
&amp;gt; in your scene, but one of the final steps in this potentially long&lt;br&gt;
&amp;gt; process is thresholding.  Most image processing applications look&lt;br&gt;
&amp;gt; something like this:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; (bunch of operations to get an image that can be thresholded)&lt;br&gt;
&amp;gt; threshold the image&lt;br&gt;
&amp;gt; do connected components labeling (if you have multiple regions that&lt;br&gt;
&amp;gt; need to be separately measured) - can use the MATLAB function&lt;br&gt;
&amp;gt; bwconncomp()&lt;br&gt;
&amp;gt; measure the objects - can use the MATLAB function regionprops()&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; In you case the first step might be to do some sort of color&lt;br&gt;
&amp;gt; classification.  If you're lucky this may be as easy as simply calling&lt;br&gt;
&amp;gt; rgb2hsv().  If all the pixels that you consider to be &quot;yellow&quot; fall&lt;br&gt;
&amp;gt; into a certain range of gray levels in the hue image, you're home&lt;br&gt;
&amp;gt; free.  Just threshold, throw out spurious yellow objects that aren't&lt;br&gt;
&amp;gt; signs (e.g. maybe they're not large enough) and measure what's left.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Here's a tutorial I wrote that uses thresholding. You may find it&lt;br&gt;
&amp;gt; helpful if you're new to image processing:&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://www.mathworks.com/matlabcentral/fileexchange/25157&quot;&gt;http://www.mathworks.com/matlabcentral/fileexchange/25157&lt;/a&gt;</description>
    </item>
    <item>
      <pubDate>Thu, 29 Oct 2009 06:33:24 -0400</pubDate>
      <title>Re: How to extract yellow color under different iluminations</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263510#690529</link>
      <author>Prasanna </author>
      <description>Hi,&lt;br&gt;
&lt;br&gt;
Its me again after some researches.&lt;br&gt;
I have two traffic signs. They are &quot;left bend&quot; and &quot;right bend&quot; (rectangular shape). I have extracted the sign from the RGB image(640*480). After doing several image techniques now I am having the binary image of the sign. It only contain one of above mentioned signs(Left bend or right bend). I want to identify this binary sign image using template matching, whether it is &quot;Left bend&quot; or &quot;right bend&quot;.&lt;br&gt;
&lt;br&gt;
Image size is 640*480. small binary sign is inside that image.Back ground is totally black.yellow area in the sign display as white and the arrow is displayed as black.&lt;br&gt;
&lt;br&gt;
Also I like to know how to create templates using one of the above mentioned binary image.Please help me. I am struggle with a research project.&lt;br&gt;
&lt;br&gt;
I have no idea how to attach a image to this mail. Else I can send you the images also.Please inform me that also.&lt;br&gt;
&lt;br&gt;
Thanks &amp; best regards,&lt;br&gt;
Prasanna</description>
    </item>
    <item>
      <pubDate>Thu, 29 Oct 2009 10:20:39 -0400</pubDate>
      <title>Re: How to extract yellow color under different iluminations</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263510#690579</link>
      <author>ImageAnalyst</author>
      <description>Prasanna:&lt;br&gt;
Ask regionprops to give you the bounding box and center of mass.  If&lt;br&gt;
the center of mass is on the left half of the bounding box, it's a&lt;br&gt;
right bending arrow.  This is because most of the arrow is the&lt;br&gt;
stragiht vertical part and if the arrow points right, then the&lt;br&gt;
straight vertical part is on the left, and only a little part of the&lt;br&gt;
arrow is in the right half..  If the center of mass is on the right&lt;br&gt;
half of the bounding box, it's a left bending arrow.&lt;br&gt;
Good luck,&lt;br&gt;
ImageAnalyst</description>
    </item>
    <item>
      <pubDate>Fri, 30 Oct 2009 07:03:27 -0400</pubDate>
      <title>Re: How to extract yellow color under different iluminations</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263510#690889</link>
      <author>Prasanna </author>
      <description>Thank u image analist I'll try with this.</description>
    </item>
    <item>
      <pubDate>Mon, 02 Nov 2009 18:11:04 -0500</pubDate>
      <title>Re: How to extract yellow color under different iluminations</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263510#691554</link>
      <author>Prasanna </author>
      <description>Hi image analyst,&lt;br&gt;
&lt;br&gt;
That method is does not going to work. Because that image is not biased to left or right. Below part of the arrow is one side and other part is other side of the image. mass is equal in both side.&lt;br&gt;
&lt;br&gt;
I have uploaded several this kind of images to the below location. But there are more images with me.&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://groups.google.com/group/apptronics/files........../images.zip&quot;&gt;http://groups.google.com/group/apptronics/files........../images.zip&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Can you give me a code to separate the rectangular sign from the image(without black back ground). But this method should able to apply any binary image that we input. Please reply. Then I can try with template matching.&lt;br&gt;
&lt;br&gt;
Thank you&lt;br&gt;
Prasanna.</description>
    </item>
  </channel>
</rss>

