<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/164139</link>
    <title>MATLAB Central Newsreader - machine vision-Color Matching</title>
    <description>Feed for thread: machine vision-Color Matching</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2008 by The 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>The MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Wed, 05 Mar 2008 05:15:20 -0500</pubDate>
      <title>Re: machine vision-Color Matching</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/164139#419093</link>
      <author>Vihang Patil</author>
      <description>Sorry for the multiple posts above.&lt;br&gt;
Vihang&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Tue, 04 Mar 2008 05:07:01 -0500</pubDate>
      <title>Re: machine vision-Color Matching</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/164139#418838</link>
      <author>Vihang Patil</author>
      <description>"Ethan " &amp;lt;emontag.nospam@leuzeusa.com&amp;gt; wrote in message &lt;br&gt;
&amp;lt;fqh5js$if5$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; You are trying to use one number to represent color when &lt;br&gt;
you need more. &lt;br&gt;
&amp;gt; You should read a little bit about color to understand &lt;br&gt;
the problem, but &lt;br&gt;
&amp;gt; basically your colors are going to vary in 3 dimensions, &lt;br&gt;
so you should check &lt;br&gt;
&amp;gt; color in 3 dimensions. If you have an issue with color &lt;br&gt;
tolerance, ie not all &lt;br&gt;
&amp;gt; blues are the same blue - they have some variation that &lt;br&gt;
is tolerable, then you &lt;br&gt;
&amp;gt; may need to go deeper into understanding color. &lt;br&gt;
Otherwise you can try &lt;br&gt;
&amp;gt; looking at the distance in 3D of a measured color from &lt;br&gt;
the standard color &lt;br&gt;
&amp;gt; (say in rgb) rather than the sum of the color &lt;br&gt;
coordinates. You can also &lt;br&gt;
&amp;gt; simplify things a little by using reducing the color to &lt;br&gt;
2 dimensions by &lt;br&gt;
&amp;gt; normalizing (into an analog of chromaticity). That is, &lt;br&gt;
use r=R/(R+G+B), &lt;br&gt;
&amp;gt; g=G/(R+G+B) where R, G, and B are the digital values and &lt;br&gt;
r and g are &lt;br&gt;
&amp;gt; "chromaticities". Then you may be able to use 2D &lt;br&gt;
distances instead of 3D. But &lt;br&gt;
&amp;gt; if real color is important, you may need to use a real &lt;br&gt;
color space that is &lt;br&gt;
&amp;gt; associated with human color vision.&lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;br&gt;
Hello Ethan&lt;br&gt;
Could you please point out to some website/reference book &lt;br&gt;
that would give insights on this 3D color space &lt;br&gt;
representation and analysis. That would really be helpful&lt;br&gt;
Vihang&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Tue, 04 Mar 2008 05:04:57 -0500</pubDate>
      <title>Re: machine vision-Color Matching</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/164139#418836</link>
      <author>Vihang Patil</author>
      <description>"Ethan " &amp;lt;emontag.nospam@leuzeusa.com&amp;gt; wrote in message &lt;br&gt;
&amp;lt;fqh5js$if5$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; You are trying to use one number to represent color when &lt;br&gt;
you need more. &lt;br&gt;
&amp;gt; You should read a little bit about color to understand &lt;br&gt;
the problem, but &lt;br&gt;
&amp;gt; basically your colors are going to vary in 3 dimensions, &lt;br&gt;
so you should check &lt;br&gt;
&amp;gt; color in 3 dimensions. If you have an issue with color &lt;br&gt;
tolerance, ie not all &lt;br&gt;
&amp;gt; blues are the same blue - they have some variation that &lt;br&gt;
is tolerable, then you &lt;br&gt;
&amp;gt; may need to go deeper into understanding color. &lt;br&gt;
Otherwise you can try &lt;br&gt;
&amp;gt; looking at the distance in 3D of a measured color from &lt;br&gt;
the standard color &lt;br&gt;
&amp;gt; (say in rgb) rather than the sum of the color &lt;br&gt;
coordinates. You can also &lt;br&gt;
&amp;gt; simplify things a little by using reducing the color to &lt;br&gt;
2 dimensions by &lt;br&gt;
&amp;gt; normalizing (into an analog of chromaticity). That is, &lt;br&gt;
use r=R/(R+G+B), &lt;br&gt;
&amp;gt; g=G/(R+G+B) where R, G, and B are the digital values and &lt;br&gt;
r and g are &lt;br&gt;
&amp;gt; "chromaticities". Then you may be able to use 2D &lt;br&gt;
distances instead of 3D. But &lt;br&gt;
&amp;gt; if real color is important, you may need to use a real &lt;br&gt;
color space that is &lt;br&gt;
&amp;gt; associated with human color vision.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt;&lt;br&gt;
Hello Ethan&lt;br&gt;
Could you please point out to some website/reference book &lt;br&gt;
that would give insights on this 3D color space &lt;br&gt;
representation and analysis. That would really be helpful&lt;br&gt;
Vihang&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Tue, 04 Mar 2008 05:04:48 -0500</pubDate>
      <title>Re: machine vision-Color Matching</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/164139#418833</link>
      <author>Vihang Patil</author>
      <description>"Ethan " &amp;lt;emontag.nospam@leuzeusa.com&amp;gt; wrote in message &lt;br&gt;
&amp;lt;fqh5js$if5$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; You are trying to use one number to represent color when &lt;br&gt;
you need more. &lt;br&gt;
&amp;gt; You should read a little bit about color to understand &lt;br&gt;
the problem, but &lt;br&gt;
&amp;gt; basically your colors are going to vary in 3 dimensions, &lt;br&gt;
so you should check &lt;br&gt;
&amp;gt; color in 3 dimensions. If you have an issue with color &lt;br&gt;
tolerance, ie not all &lt;br&gt;
&amp;gt; blues are the same blue - they have some variation that &lt;br&gt;
is tolerable, then you &lt;br&gt;
&amp;gt; may need to go deeper into understanding color. &lt;br&gt;
Otherwise you can try &lt;br&gt;
&amp;gt; looking at the distance in 3D of a measured color from &lt;br&gt;
the standard color &lt;br&gt;
&amp;gt; (say in rgb) rather than the sum of the color &lt;br&gt;
coordinates. You can also &lt;br&gt;
&amp;gt; simplify things a little by using reducing the color to &lt;br&gt;
2 dimensions by &lt;br&gt;
&amp;gt; normalizing (into an analog of chromaticity). That is, &lt;br&gt;
use r=R/(R+G+B), &lt;br&gt;
&amp;gt; g=G/(R+G+B) where R, G, and B are the digital values and &lt;br&gt;
r and g are &lt;br&gt;
&amp;gt; "chromaticities". Then you may be able to use 2D &lt;br&gt;
distances instead of 3D. But &lt;br&gt;
&amp;gt; if real color is important, you may need to use a real &lt;br&gt;
color space that is &lt;br&gt;
&amp;gt; associated with human color vision.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt;&lt;br&gt;
Hello Ethan&lt;br&gt;
Could you please point out to some website/reference book &lt;br&gt;
that would give insights on this 3D color space &lt;br&gt;
representation and analysis. That would really be helpful&lt;br&gt;
Vihang&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Tue, 04 Mar 2008 05:04:48 -0500</pubDate>
      <title>Re: machine vision-Color Matching</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/164139#418834</link>
      <author>Vihang Patil</author>
      <description>"Ethan " &amp;lt;emontag.nospam@leuzeusa.com&amp;gt; wrote in message &lt;br&gt;
&amp;lt;fqh5js$if5$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; You are trying to use one number to represent color when &lt;br&gt;
you need more. &lt;br&gt;
&amp;gt; You should read a little bit about color to understand &lt;br&gt;
the problem, but &lt;br&gt;
&amp;gt; basically your colors are going to vary in 3 dimensions, &lt;br&gt;
so you should check &lt;br&gt;
&amp;gt; color in 3 dimensions. If you have an issue with color &lt;br&gt;
tolerance, ie not all &lt;br&gt;
&amp;gt; blues are the same blue - they have some variation that &lt;br&gt;
is tolerable, then you &lt;br&gt;
&amp;gt; may need to go deeper into understanding color. &lt;br&gt;
Otherwise you can try &lt;br&gt;
&amp;gt; looking at the distance in 3D of a measured color from &lt;br&gt;
the standard color &lt;br&gt;
&amp;gt; (say in rgb) rather than the sum of the color &lt;br&gt;
coordinates. You can also &lt;br&gt;
&amp;gt; simplify things a little by using reducing the color to &lt;br&gt;
2 dimensions by &lt;br&gt;
&amp;gt; normalizing (into an analog of chromaticity). That is, &lt;br&gt;
use r=R/(R+G+B), &lt;br&gt;
&amp;gt; g=G/(R+G+B) where R, G, and B are the digital values and &lt;br&gt;
r and g are &lt;br&gt;
&amp;gt; "chromaticities". Then you may be able to use 2D &lt;br&gt;
distances instead of 3D. But &lt;br&gt;
&amp;gt; if real color is important, you may need to use a real &lt;br&gt;
color space that is &lt;br&gt;
&amp;gt; associated with human color vision.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt;&lt;br&gt;
Hello Ethan&lt;br&gt;
Could you please point out to some website/reference book &lt;br&gt;
that would give insights on this 3D color space &lt;br&gt;
representation and analysis. That would really be helpful&lt;br&gt;
Vihang&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Tue, 04 Mar 2008 04:58:02 -0500</pubDate>
      <title>Re: machine vision-Color Matching</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/164139#418830</link>
      <author>Vihang Patil</author>
      <description>"Vihang Patil" &amp;lt;vihang_patil@yahoo.com&amp;gt; wrote in message &lt;br&gt;
&amp;lt;fqghav$jic$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&lt;br&gt;
&amp;gt; Meanwhile, I will be posting some of my work on Color &lt;br&gt;
&amp;gt; Matching shortly on FEX, so till then please keep &lt;br&gt;
watching &lt;br&gt;
&amp;gt; and/or updating this post with useful comments.&lt;br&gt;
&amp;gt; Vihang&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Please see my humble contribution, for color matching &lt;br&gt;
application on&lt;br&gt;
&lt;br&gt;
&lt;a href="http://www.mathworks.com/matlabcentral/fileexchange/loadFil"&gt;http://www.mathworks.com/matlabcentral/fileexchange/loadFil&lt;/a&gt;&lt;br&gt;
e.do?objectId=19020&amp;objectType=FILE&lt;br&gt;
&lt;br&gt;
or&lt;br&gt;
&lt;br&gt;
&lt;a href="http://tinyurl.com/2b2mld"&gt;http://tinyurl.com/2b2mld&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Best Regards&lt;br&gt;
Vihang&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Mon, 03 Mar 2008 15:31:08 -0500</pubDate>
      <title>Re: machine vision-Color Matching</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/164139#418714</link>
      <author>Ethan </author>
      <description>You are trying to use one number to represent color when you need more. &lt;br&gt;
You should read a little bit about color to understand the problem, but &lt;br&gt;
basically your colors are going to vary in 3 dimensions, so you should check &lt;br&gt;
color in 3 dimensions. If you have an issue with color tolerance, ie not all &lt;br&gt;
blues are the same blue - they have some variation that is tolerable, then you &lt;br&gt;
may need to go deeper into understanding color. Otherwise you can try &lt;br&gt;
looking at the distance in 3D of a measured color from the standard color &lt;br&gt;
(say in rgb) rather than the sum of the color coordinates. You can also &lt;br&gt;
simplify things a little by using reducing the color to 2 dimensions by &lt;br&gt;
normalizing (into an analog of chromaticity). That is, use r=R/(R+G+B), &lt;br&gt;
g=G/(R+G+B) where R, G, and B are the digital values and r and g are &lt;br&gt;
"chromaticities". Then you may be able to use 2D distances instead of 3D. But &lt;br&gt;
if real color is important, you may need to use a real color space that is &lt;br&gt;
associated with human color vision.&lt;br&gt;
&lt;br&gt;
"Vihang Patil" &amp;lt;vihang_patil@yahoo.com&amp;gt; wrote in message &lt;br&gt;
&amp;lt;fpgn52$9ij$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hello All&lt;br&gt;
&amp;gt; I am in the process of developing machine vision system i &lt;br&gt;
&amp;gt; Matlab, primarily to detect color change, "basic colors &lt;br&gt;
&amp;gt; only and not shades".&lt;br&gt;
&amp;gt; This is what I have achieved so far, please let me know &lt;br&gt;
&amp;gt; after going through the details below if there is &lt;br&gt;
&amp;gt; something which probably missing the way I am developing &lt;br&gt;
&amp;gt; it.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Preliminary Details:&lt;br&gt;
&amp;gt; 1. The object to be detected for color change comes in the &lt;br&gt;
&amp;gt; following 4 colors;Metallic BLOOD RED, Metallic BlACK, &lt;br&gt;
&amp;gt; Metallic SILVER, Metallic BLUE. &lt;br&gt;
&amp;gt; 2. They are coming on the conveyor at a speed about 1.25 &lt;br&gt;
&amp;gt; to 1.66 objects/min, ie roughly 600 - 800 in an 8 hour &lt;br&gt;
&amp;gt; shift.&lt;br&gt;
&amp;gt; 3. Ligting condition is flouroscent tube&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; My steps for Reference Image:&lt;br&gt;
&amp;gt; 1. I have placed a trigger on the conveyor such that, &lt;br&gt;
&amp;gt; whenever the object crosses it, the camera will take an &lt;br&gt;
&amp;gt; image&lt;br&gt;
&amp;gt; 2. I crop the Region of Interest and Store the image &lt;br&gt;
&amp;gt; details of the part of my interest.&lt;br&gt;
&amp;gt; 3. Convert the cropped image into indexed image for ex: &lt;br&gt;
&amp;gt; rgb2ind(img,1,'nodither'); so that I have a single uniform &lt;br&gt;
&amp;gt; colored image&lt;br&gt;
&amp;gt; 4. Get the value of the color from the centroid of the &lt;br&gt;
&amp;gt; cropped image.&lt;br&gt;
&amp;gt; 5. Store the details of the 4 colors in the mat file for &lt;br&gt;
&amp;gt; further testing process.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Testing Part:&lt;br&gt;
&amp;gt; 1. I take the image and do the same analysis as discussed &lt;br&gt;
&amp;gt; in Step 1 to 4 of the above discussion.&lt;br&gt;
&amp;gt; 2. Then do the color matching part.&lt;br&gt;
&amp;gt; My logic here as descibed by the example below&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Suppose I have got these values for the colors from the &lt;br&gt;
&amp;gt; reference image&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; black = [18 22 25];&lt;br&gt;
&amp;gt; silver = [179 185 191];&lt;br&gt;
&amp;gt; red = [123 3 10];&lt;br&gt;
&amp;gt; blue = [75 96 237];&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Now it is pretty obvious that due to the ambient lighting &lt;br&gt;
&amp;gt; condition and other factors, you will not get the same &lt;br&gt;
&amp;gt; color match or perfect match for the object in test &lt;br&gt;
&amp;gt; condition and I get a  value which is say&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; color = [80 110 217]; &lt;br&gt;
&amp;gt; My question is "How do we determine and tell that it is &lt;br&gt;
&amp;gt; blue"&lt;br&gt;
&amp;gt; or if I get&lt;br&gt;
&amp;gt; color = [194 208 211], "How do I determing that it is &lt;br&gt;
&amp;gt; Silver".&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I hope I am able to explain or let you all visualize the &lt;br&gt;
&amp;gt; problem.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; My logic tells me that I should do the following&lt;br&gt;
&amp;gt; 1. testimgval = color(1) + color(2) + color(3) = (80 + 110 &lt;br&gt;
&amp;gt; +217) = 407&lt;br&gt;
&amp;gt; 2. Do the summation of all the stored colors by the same &lt;br&gt;
&amp;gt; way and do subtraction.&lt;br&gt;
&amp;gt; ex:&lt;br&gt;
&amp;gt; Blackval = black(1) + black(2) + black(3) = 65;&lt;br&gt;
&amp;gt; Similarly other color will be; &lt;br&gt;
&amp;gt; Redval = 126;&lt;br&gt;
&amp;gt; Silverval = 555;&lt;br&gt;
&amp;gt; Blueval = 408&lt;br&gt;
&amp;gt; 3. Subtract testimageval from each of the colorval and the &lt;br&gt;
&amp;gt; minimum value which corresponds to that color is the color &lt;br&gt;
&amp;gt; detected.&lt;br&gt;
&amp;gt; i.e&lt;br&gt;
&amp;gt;  abs(407 - 65) = 342;&lt;br&gt;
&amp;gt; abs(407-126) = 281;&lt;br&gt;
&amp;gt; abs(407 -555) = 148&lt;br&gt;
&amp;gt; abs(407 - 408) = 1 = ----&amp;gt; least from all above so the &lt;br&gt;
&amp;gt; color must be Blue.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; But I some how dont get the same satisfactory results by &lt;br&gt;
&amp;gt; my above calculation. i.e sometimes I get blue when the &lt;br&gt;
&amp;gt; object is actually silver, I get red if the object is &lt;br&gt;
&amp;gt; black and so on and so forth. &lt;br&gt;
&amp;gt; Am I missing something very imp in designing this machine &lt;br&gt;
&amp;gt; vision system?&lt;br&gt;
&amp;gt;  I know its not directly related to Matlab in any way, but &lt;br&gt;
&amp;gt; just looking for some imp comments from those, who feel &lt;br&gt;
&amp;gt; probably there is something which is still required there.&lt;br&gt;
&amp;gt; Thanks&lt;br&gt;
&amp;gt; Vihang&lt;br&gt;
&amp;gt;  &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Mon, 03 Mar 2008 09:45:03 -0500</pubDate>
      <title>Re: machine vision-Color Matching</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/164139#418648</link>
      <author>Vihang Patil</author>
      <description>ImageAnalyst &amp;lt;imageanalyst@mailinator.com&amp;gt; wrote in &lt;br&gt;
&amp;gt; For fun, have a look at these illusions:&lt;br&gt;
&amp;gt; &lt;a href="http://www.psy.ritsumei.ac.jp/~akitaoka/color-e.html"&gt;http://www.psy.ritsumei.ac.jp/~akitaoka/color-e.html&lt;/a&gt;&lt;br&gt;
&amp;gt; particularly the one called "Green and blue spirals"  It &lt;br&gt;
shows you&lt;br&gt;
&amp;gt; just how deceptive perceived colors can be.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Check out all the other links at his site too.&lt;br&gt;
&amp;gt; &lt;a href="http://www.ritsumei.ac.jp/~akitaoka/index-e.html"&gt;http://www.ritsumei.ac.jp/~akitaoka/index-e.html&lt;/a&gt;&lt;br&gt;
&amp;gt; Most of them are quite fun and colorful.&lt;br&gt;
&amp;gt; Regards,&lt;br&gt;
&amp;gt; ImageAnalyst&lt;br&gt;
&lt;br&gt;
I intially did not believe my eyes when I looked at &lt;br&gt;
the "Green and the Blue Spirals". But then I loaded the &lt;br&gt;
image in Matlab and used impixelinfo over the image just &lt;br&gt;
to check whether they are really the same, and I am so &lt;br&gt;
amazed that I have stopped believing on this fact "Seeing &lt;br&gt;
is Believing". I can keep looking at the image the whole &lt;br&gt;
day but still, I am not able to tell that they are the &lt;br&gt;
same color. Simply marvellous.&lt;br&gt;
&lt;br&gt;
Meanwhile, I will be posting some of my work on Color &lt;br&gt;
Matching shortly on FEX, so till then please keep watching &lt;br&gt;
and/or updating this post with useful comments.&lt;br&gt;
Vihang&lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Sun, 02 Mar 2008 18:53:58 -0500</pubDate>
      <title>Re: machine vision-Color Matching</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/164139#418561</link>
      <author>ImageAnalyst</author>
      <description>On Feb 27, 12:56=A0pm, "John D'Errico" &amp;lt;woodch...@rochester.rr.com&amp;gt;&lt;br&gt;
wrote:&lt;br&gt;
&amp;gt; "Vihang Patil" &amp;lt;vihang_pa...@yahoo.com&amp;gt; wrote in message&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;lt;fq4372$he...@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; "John D'Errico" &amp;lt;woodch...@rochester.rr.com&amp;gt; wrote in&lt;br&gt;
&amp;gt; &amp;gt; message &amp;lt;fpjlk1$3h...@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Try changing the blue pixel a bit.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; [iscolor,cn] =3D fuzzycolor([60 100 220]/255,'all');cn{find&lt;br&gt;
&amp;gt; &amp;gt; (iscolor)}&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; ans =3D&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; blue&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Still blue, no problems. Find fuzzycolor on&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; the file exchange.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&lt;a href="http://www.mathworks.com/matlabcentral/fileexchange/loadFil"&gt;http://www.mathworks.com/matlabcentral/fileexchange/loadFil&lt;/a&gt;&lt;br&gt;
&amp;gt; &amp;gt; e.do?&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; objectId=3D12326&amp;objectType=3DFILE&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; HTH,&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; John&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Hello John&lt;br&gt;
&amp;gt; &amp;gt; I tried your fuzzycolor, its good, but I think it requires&lt;br&gt;
&amp;gt; &amp;gt; a lot of tweaking too&lt;br&gt;
&amp;gt; &amp;gt; for example&lt;br&gt;
&amp;gt; &amp;gt; [iscolor,cn] =3D fuzzycolor([88 110 255]/255,'all');cn{find&lt;br&gt;
&amp;gt; &amp;gt; (iscolor)}&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; I get no color whereas it is very much blue to me, which&lt;br&gt;
&amp;gt; &amp;gt; you can see from the code below.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; new =3D im2uint8(ones([128 128 3]));&lt;br&gt;
&amp;gt; &amp;gt; new(:,:,1) =3D 88;&lt;br&gt;
&amp;gt; &amp;gt; new(:,:,2) =3D 110;&lt;br&gt;
&amp;gt; &amp;gt; new(:,:,3) =3D 255;&lt;br&gt;
&amp;gt; &amp;gt; figure,imshow(new);&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; I think I will need to add this into the fuzzycolor's&lt;br&gt;
&amp;gt; &amp;gt; database. I am still working on it. Probably you can&lt;br&gt;
&amp;gt; &amp;gt; through more insight on it.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Vihang&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Yes, I may have missed some blues when I built&lt;br&gt;
&amp;gt; the database. As I recall, I did try to provide an&lt;br&gt;
&amp;gt; ability to add to or change the database.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; A problem is that what I considered to be a blue,&lt;br&gt;
&amp;gt; on MY monitor, may not always coincide with&lt;br&gt;
&amp;gt; others opinion of a blue. There are several issues&lt;br&gt;
&amp;gt; of metamerism here to deal with. If your monitor&lt;br&gt;
&amp;gt; is set up with a higher or lower color temperature,&lt;br&gt;
&amp;gt; then blues might change. Or suppose one of us&lt;br&gt;
&amp;gt; is moderately color blind, perhaps protoanomalous&lt;br&gt;
&amp;gt; (red-green) or even tritananomalous (yellow-blue).&lt;br&gt;
&amp;gt; Even a minor amount of such an effect can influence&lt;br&gt;
&amp;gt; how you might see colors differently from me. Since&lt;br&gt;
&amp;gt; different people can have subtly different pigments&lt;br&gt;
&amp;gt; in their cones, they can see colors differently even&lt;br&gt;
&amp;gt; if not color blind at all.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; These issues are why I called it fuzzy color. The&lt;br&gt;
&amp;gt; boundaries of a color name region will be both&lt;br&gt;
&amp;gt; irregular and fuzzy. In fact, some color name&lt;br&gt;
&amp;gt; regions may even overlap, i.e., colors near the&lt;br&gt;
&amp;gt; boundary of two color names like yellow/green,&lt;br&gt;
&amp;gt; might be arguably both yellow and green.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; For your work, a simple solution is to build/modify&lt;br&gt;
&amp;gt; the database for your own eyes &amp; monitor. Ask if&lt;br&gt;
&amp;gt; you have questions. I'd have to revisit the code,&lt;br&gt;
&amp;gt; but it was not hard to do using the buildfuzzyluts&lt;br&gt;
&amp;gt; function that I provided. The idea is it pops up&lt;br&gt;
&amp;gt; a series of color planes, then you encircle those&lt;br&gt;
&amp;gt; colors which satisfy your colorname with a&lt;br&gt;
&amp;gt; polygon in each plane.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; John- Hide quoted text -&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; - Show quoted text -&lt;br&gt;
&lt;br&gt;
-----------------&lt;br&gt;
For fun, have a look at these illusions:&lt;br&gt;
&lt;a href="http://www.psy.ritsumei.ac.jp/~akitaoka/color-e.html"&gt;http://www.psy.ritsumei.ac.jp/~akitaoka/color-e.html&lt;/a&gt;&lt;br&gt;
particularly the one called "Green and blue spirals"  It shows you&lt;br&gt;
just how deceptive perceived colors can be.&lt;br&gt;
&lt;br&gt;
Check out all the other links at his site too.&lt;br&gt;
&lt;a href="http://www.ritsumei.ac.jp/~akitaoka/index-e.html"&gt;http://www.ritsumei.ac.jp/~akitaoka/index-e.html&lt;/a&gt;&lt;br&gt;
Most of them are quite fun and colorful.&lt;br&gt;
Regards,&lt;br&gt;
ImageAnalyst&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Sat, 01 Mar 2008 17:44:00 -0500</pubDate>
      <title>Re: machine vision-Color Matching</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/164139#418435</link>
      <author>fburton@nyx.net (Francis Burton)</author>
      <description>In article &amp;lt;e7d1eb41-4679-4640-a3b7-c341c2cdd5d5@e23g2000prf.googlegroups.com&amp;gt;,&lt;br&gt;
ImageAnalyst  &amp;lt;imageanalyst@mailinator.com&amp;gt; wrote:&lt;br&gt;
&amp;gt;Most birds and fish also have 4 cones so their color vision is more&lt;br&gt;
&amp;gt;accurate than humans.  Makes sense when you think about it because&lt;br&gt;
&amp;gt;birds and fish are among the most brilliantly colored animals.  Dogs&lt;br&gt;
&amp;gt;have two types of cones so can still see color (&lt;a href="http://ask.yahoo.com/"&gt;http://ask.yahoo.com/&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Ah, that explains why dogs' coats are so drab. ;-)&lt;br&gt;
&lt;br&gt;
&amp;gt;20020902.html) contrary to what many people think.&lt;br&gt;
&lt;br&gt;
Some horsey people used to think that equines are totally colour&lt;br&gt;
blind. In fact, they are also dichromats (two cone types) along&lt;br&gt;
with a lot of other mammals.&lt;br&gt;
&lt;br&gt;
&amp;gt;  I've never heard&lt;br&gt;
&amp;gt;of people with 4 types of cones but I guess it could happen.  Some guy&lt;br&gt;
&amp;gt;once wrote a book about an island in the Pacific where a good portion&lt;br&gt;
&amp;gt;of the people only had 1 type of cone and so they saw in monochrome.&lt;br&gt;
&lt;br&gt;
That would be Oliver Sacks:&lt;br&gt;
&lt;a href="http://www.oliversacks.com/island.htm"&gt;http://www.oliversacks.com/island.htm&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Francis&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Fri, 29 Feb 2008 04:30:56 -0500</pubDate>
      <title>Re: machine vision-Color Matching</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/164139#418138</link>
      <author>ImageAnalyst</author>
      <description>On Feb 28, 7:18=A0am, "John D'Errico" &amp;lt;woodch...@rochester.rr.com&amp;gt;&lt;br&gt;
wrote:&lt;br&gt;
&amp;gt; "Vihang Patil" &amp;lt;vihang_pa...@yahoo.com&amp;gt; wrote in message&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;lt;fq632c$i7...@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Thanks John and ImageAnalyst, will definately work on your&lt;br&gt;
&amp;gt; &amp;gt; suggestions.&lt;br&gt;
&amp;gt; &amp;gt; Its quite true what John said, about human perception of&lt;br&gt;
&amp;gt; &amp;gt; color. I too had a similar experience once, when me and my&lt;br&gt;
&amp;gt; &amp;gt; brother were lazing on the bed and I told him the celing&lt;br&gt;
&amp;gt; &amp;gt; is looking pale yellow. While he was pretty sure that it&lt;br&gt;
&amp;gt; &amp;gt; was pure white. We had a good long debate, where finally I&lt;br&gt;
&amp;gt; &amp;gt; won "Since I am the elder one". That normally happens, I&lt;br&gt;
&amp;gt; &amp;gt; guess the elders bullies the younger and make them accept&lt;br&gt;
&amp;gt; &amp;gt; that they were wrong.&lt;br&gt;
&amp;gt; &amp;gt; But Jokes apart I think I will need to do extensive study&lt;br&gt;
&amp;gt; &amp;gt; on color recognition.&lt;br&gt;
&amp;gt; &amp;gt; Thanks and Regards&lt;br&gt;
&amp;gt; &amp;gt; Vihang&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; About 20 years ago I did some studies on color&lt;br&gt;
&amp;gt; blindness. This brought me in contact with a&lt;br&gt;
&amp;gt; color blind opthamologist, as well as a few other&lt;br&gt;
&amp;gt; people who were color blind.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; The doctor had an interesting story to tell - he&lt;br&gt;
&amp;gt; never knew he was color blind until med school,&lt;br&gt;
&amp;gt; where he had a class where they showed the&lt;br&gt;
&amp;gt; Ishihara plates and he saw the wrong things!&lt;br&gt;
&amp;gt; The point is that many people who have this&lt;br&gt;
&amp;gt; characteristic don't actually know they have it,&lt;br&gt;
&amp;gt; or it takes them years to realize. A person might&lt;br&gt;
&amp;gt; also have various degrees of color anomaly.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &lt;a href="http://mysite.du.edu/~jcalvert/optics/colvisn.htm"&gt;http://mysite.du.edu/~jcalvert/optics/colvisn.htm&lt;/a&gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Finally, I was also reading recently that some&lt;br&gt;
&amp;gt; women even have 4 distinct types of cones in&lt;br&gt;
&amp;gt; their eyes. They see color in 4 dimensions. Do&lt;br&gt;
&amp;gt; a Google search for the word "quadchromatic"&lt;br&gt;
&amp;gt; or "tetrachromatic women".&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; John&lt;br&gt;
&lt;br&gt;
Most birds and fish also have 4 cones so their color vision is more&lt;br&gt;
accurate than humans.  Makes sense when you think about it because&lt;br&gt;
birds and fish are among the most brilliantly colored animals.  Dogs&lt;br&gt;
have two types of cones so can still see color (&lt;a href="http://ask.yahoo.com/"&gt;http://ask.yahoo.com/&lt;/a&gt;&lt;br&gt;
20020902.html) contrary to what many people think.  I've never heard&lt;br&gt;
of people with 4 types of cones but I guess it could happen.  Some guy&lt;br&gt;
once wrote a book about an island in the Pacific where a good portion&lt;br&gt;
of the people only had 1 type of cone and so they saw in monochrome.&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Thu, 28 Feb 2008 12:18:01 -0500</pubDate>
      <title>Re: machine vision-Color Matching</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/164139#417940</link>
      <author>John D'Errico</author>
      <description>"Vihang Patil" &amp;lt;vihang_patil@yahoo.com&amp;gt; wrote in message &lt;br&gt;
&amp;lt;fq632c$i7s$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Thanks John and ImageAnalyst, will definately work on your &lt;br&gt;
&amp;gt; suggestions.&lt;br&gt;
&amp;gt; Its quite true what John said, about human perception of &lt;br&gt;
&amp;gt; color. I too had a similar experience once, when me and my &lt;br&gt;
&amp;gt; brother were lazing on the bed and I told him the celing &lt;br&gt;
&amp;gt; is looking pale yellow. While he was pretty sure that it &lt;br&gt;
&amp;gt; was pure white. We had a good long debate, where finally I &lt;br&gt;
&amp;gt; won "Since I am the elder one". That normally happens, I &lt;br&gt;
&amp;gt; guess the elders bullies the younger and make them accept &lt;br&gt;
&amp;gt; that they were wrong.&lt;br&gt;
&amp;gt; But Jokes apart I think I will need to do extensive study &lt;br&gt;
&amp;gt; on color recognition.&lt;br&gt;
&amp;gt; Thanks and Regards&lt;br&gt;
&amp;gt; Vihang&lt;br&gt;
&lt;br&gt;
About 20 years ago I did some studies on color&lt;br&gt;
blindness. This brought me in contact with a&lt;br&gt;
color blind opthamologist, as well as a few other&lt;br&gt;
people who were color blind.&lt;br&gt;
&lt;br&gt;
The doctor had an interesting story to tell - he&lt;br&gt;
never knew he was color blind until med school,&lt;br&gt;
where he had a class where they showed the&lt;br&gt;
Ishihara plates and he saw the wrong things!&lt;br&gt;
The point is that many people who have this&lt;br&gt;
characteristic don't actually know they have it,&lt;br&gt;
or it takes them years to realize. A person might&lt;br&gt;
also have various degrees of color anomaly.&lt;br&gt;
&lt;br&gt;
&lt;a href="http://mysite.du.edu/~jcalvert/optics/colvisn.htm"&gt;http://mysite.du.edu/~jcalvert/optics/colvisn.htm&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Finally, I was also reading recently that some&lt;br&gt;
women even have 4 distinct types of cones in&lt;br&gt;
their eyes. They see color in 4 dimensions. Do&lt;br&gt;
a Google search for the word "quadchromatic"&lt;br&gt;
or "tetrachromatic women".&lt;br&gt;
&lt;br&gt;
John&lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Thu, 28 Feb 2008 10:40:12 -0500</pubDate>
      <title>Re: machine vision-Color Matching</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/164139#417928</link>
      <author>Vihang Patil</author>
      <description>Thanks John and ImageAnalyst, will definately work on your &lt;br&gt;
suggestions.&lt;br&gt;
Its quite true what John said, about human perception of &lt;br&gt;
color. I too had a similar experience once, when me and my &lt;br&gt;
brother were lazing on the bed and I told him the celing &lt;br&gt;
is looking pale yellow. While he was pretty sure that it &lt;br&gt;
was pure white. We had a good long debate, where finally I &lt;br&gt;
won "Since I am the elder one". That normally happens, I &lt;br&gt;
guess the elders bullies the younger and make them accept &lt;br&gt;
that they were wrong.&lt;br&gt;
But Jokes apart I think I will need to do extensive study &lt;br&gt;
on color recognition.&lt;br&gt;
Thanks and Regards&lt;br&gt;
Vihang&lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Thu, 28 Feb 2008 04:32:44 -0500</pubDate>
      <title>Re: machine vision-Color Matching</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/164139#417889</link>
      <author>ImageAnalyst</author>
      <description>On Feb 20, 3:08=A0am, "Vihang Patil" &amp;lt;vihang_pa...@yahoo.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; Hello All&lt;br&gt;
&amp;gt; I am in the process of developing machine vision system i&lt;br&gt;
&amp;gt; Matlab, primarily to detect color change, "basic colors&lt;br&gt;
&amp;gt; only and not shades".&lt;br&gt;
&amp;gt; This is what I have achieved so far, please let me know&lt;br&gt;
&amp;gt; after going through the details below if there is&lt;br&gt;
&amp;gt; something which probably missing the way I am developing&lt;br&gt;
&amp;gt; it.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Preliminary Details:&lt;br&gt;
&amp;gt; 1. The object to be detected for color change comes in the&lt;br&gt;
&amp;gt; following 4 colors;Metallic BLOOD RED, Metallic BlACK,&lt;br&gt;
&amp;gt; Metallic SILVER, Metallic BLUE.&lt;br&gt;
&amp;gt; 2. They are coming on the conveyor at a speed about 1.25&lt;br&gt;
&amp;gt; to 1.66 objects/min, ie roughly 600 - 800 in an 8 hour&lt;br&gt;
&amp;gt; shift.&lt;br&gt;
&amp;gt; 3. Ligting condition is flouroscent tube&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; My steps for Reference Image:&lt;br&gt;
&amp;gt; 1. I have placed a trigger on the conveyor such that,&lt;br&gt;
&amp;gt; whenever the object crosses it, the camera will take an&lt;br&gt;
&amp;gt; image&lt;br&gt;
&amp;gt; 2. I crop the Region of Interest and Store the image&lt;br&gt;
&amp;gt; details of the part of my interest.&lt;br&gt;
&amp;gt; 3. Convert the cropped image into indexed image for ex:&lt;br&gt;
&amp;gt; rgb2ind(img,1,'nodither'); so that I have a single uniform&lt;br&gt;
&amp;gt; colored image&lt;br&gt;
&amp;gt; 4. Get the value of the color from the centroid of the&lt;br&gt;
&amp;gt; cropped image.&lt;br&gt;
&amp;gt; 5. Store the details of the 4 colors in the mat file for&lt;br&gt;
&amp;gt; further testing process.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Testing Part:&lt;br&gt;
&amp;gt; 1. I take the image and do the same analysis as discussed&lt;br&gt;
&amp;gt; in Step 1 to 4 of the above discussion.&lt;br&gt;
&amp;gt; 2. Then do the color matching part.&lt;br&gt;
&amp;gt; My logic here as descibed by the example below&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Suppose I have got these values for the colors from the&lt;br&gt;
&amp;gt; reference image&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; black =3D [18 22 25];&lt;br&gt;
&amp;gt; silver =3D [179 185 191];&lt;br&gt;
&amp;gt; red =3D [123 3 10];&lt;br&gt;
&amp;gt; blue =3D [75 96 237];&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Now it is pretty obvious that due to the ambient lighting&lt;br&gt;
&amp;gt; condition and other factors, you will not get the same&lt;br&gt;
&amp;gt; color match or perfect match for the object in test&lt;br&gt;
&amp;gt; condition and I get a =A0value which is say&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; color =3D [80 110 217];&lt;br&gt;
&amp;gt; My question is "How do we determine and tell that it is&lt;br&gt;
&amp;gt; blue"&lt;br&gt;
&amp;gt; or if I get&lt;br&gt;
&amp;gt; color =3D [194 208 211], "How do I determing that it is&lt;br&gt;
&amp;gt; Silver".&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I hope I am able to explain or let you all visualize the&lt;br&gt;
&amp;gt; problem.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; My logic tells me that I should do the following&lt;br&gt;
&amp;gt; 1. testimgval =3D color(1) + color(2) + color(3) =3D (80 + 110&lt;br&gt;
&amp;gt; +217) =3D 407&lt;br&gt;
&amp;gt; 2. Do the summation of all the stored colors by the same&lt;br&gt;
&amp;gt; way and do subtraction.&lt;br&gt;
&amp;gt; ex:&lt;br&gt;
&amp;gt; Blackval =3D black(1) + black(2) + black(3) =3D 65;&lt;br&gt;
&amp;gt; Similarly other color will be;&lt;br&gt;
&amp;gt; Redval =3D 126;&lt;br&gt;
&amp;gt; Silverval =3D 555;&lt;br&gt;
&amp;gt; Blueval =3D 408&lt;br&gt;
&amp;gt; 3. Subtract testimageval from each of the colorval and the&lt;br&gt;
&amp;gt; minimum value which corresponds to that color is the color&lt;br&gt;
&amp;gt; detected.&lt;br&gt;
&amp;gt; i.e&lt;br&gt;
&amp;gt; =A0abs(407 - 65) =3D 342;&lt;br&gt;
&amp;gt; abs(407-126) =3D 281;&lt;br&gt;
&amp;gt; abs(407 -555) =3D 148&lt;br&gt;
&amp;gt; abs(407 - 408) =3D 1 =3D ----&amp;gt; least from all above so the&lt;br&gt;
&amp;gt; color must be Blue.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; But I some how dont get the same satisfactory results by&lt;br&gt;
&amp;gt; my above calculation. i.e sometimes I get blue when the&lt;br&gt;
&amp;gt; object is actually silver, I get red if the object is&lt;br&gt;
&amp;gt; black and so on and so forth.&lt;br&gt;
&amp;gt; Am I missing something very imp in designing this machine&lt;br&gt;
&amp;gt; vision system?&lt;br&gt;
&amp;gt; =A0I know its not directly related to Matlab in any way, but&lt;br&gt;
&amp;gt; just looking for some imp comments from those, who feel&lt;br&gt;
&amp;gt; probably there is something which is still required there.&lt;br&gt;
&amp;gt; Thanks&lt;br&gt;
&amp;gt; Vihang&lt;br&gt;
&lt;br&gt;
Vihang:&lt;br&gt;
Here's an eye opening experience for you:&lt;br&gt;
Download ImageJ and install it - it's freeware from the NIH.&lt;br&gt;
&lt;a href="http://rsb.info.nih.gov/ij/"&gt;http://rsb.info.nih.gov/ij/&lt;/a&gt;&lt;br&gt;
Then go here&lt;br&gt;
&lt;a href="http://rsb.info.nih.gov/ij/plugins/color-inspector.html"&gt;http://rsb.info.nih.gov/ij/plugins/color-inspector.html&lt;/a&gt;&lt;br&gt;
and install the 3D Color Inspector/Color Histogram.&lt;br&gt;
This amazing gamut visualization program lets you visualize the color&lt;br&gt;
gamut in several different color spaces.  You read in your color image&lt;br&gt;
and it plots the gamut scatterplot in 3D and lets you interact with it&lt;br&gt;
in several ways, such as reorienting the axes.  It's really amazing&lt;br&gt;
how much you can learn when you see what colors you actually have in&lt;br&gt;
your image displayed graphically in a 3D scatterplot.  Plus it lets&lt;br&gt;
you pick several color classifiers such as Median Cut, and Wu's color&lt;br&gt;
quantization.  You can even specify the number of colors you wish to&lt;br&gt;
classify your gamut into.&lt;br&gt;
&lt;br&gt;
You can still do the math in MATLAB, but once you've visualized the&lt;br&gt;
gamut of your image(s), I know you'll be glad you did.  It really&lt;br&gt;
helps you to figure out how you need to carve up your gamut to do your&lt;br&gt;
color classification.&lt;br&gt;
&lt;br&gt;
Seriously, do this (it's free, painless, and easy), and then let me&lt;br&gt;
know how you like it.  You'll be glad you did.  It's really cool!&lt;br&gt;
Best wishes,&lt;br&gt;
ImageAnalyst&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Wed, 27 Feb 2008 17:56:03 -0500</pubDate>
      <title>Re: machine vision-Color Matching</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/164139#417745</link>
      <author>John D'Errico</author>
      <description>"Vihang Patil" &amp;lt;vihang_patil@yahoo.com&amp;gt; wrote in message &lt;br&gt;
&amp;lt;fq4372$hem$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; "John D'Errico" &amp;lt;woodchips@rochester.rr.com&amp;gt; wrote in &lt;br&gt;
&amp;gt; message &amp;lt;fpjlk1$3ho$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Try changing the blue pixel a bit.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; [iscolor,cn] = fuzzycolor([60 100 220]/255,'all');cn{find&lt;br&gt;
&amp;gt; (iscolor)}&lt;br&gt;
&amp;gt; &amp;gt; ans =&lt;br&gt;
&amp;gt; &amp;gt; blue&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Still blue, no problems. Find fuzzycolor on&lt;br&gt;
&amp;gt; &amp;gt; the file exchange.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &lt;a href="http://www.mathworks.com/matlabcentral/fileexchange/loadFil"&gt;http://www.mathworks.com/matlabcentral/fileexchange/loadFil&lt;/a&gt;&lt;br&gt;
&amp;gt; e.do?&lt;br&gt;
&amp;gt; &amp;gt; objectId=12326&amp;objectType=FILE&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; HTH,&lt;br&gt;
&amp;gt; &amp;gt; John&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Hello John&lt;br&gt;
&amp;gt; I tried your fuzzycolor, its good, but I think it requires &lt;br&gt;
&amp;gt; a lot of tweaking too&lt;br&gt;
&amp;gt; for example&lt;br&gt;
&amp;gt; [iscolor,cn] = fuzzycolor([88 110 255]/255,'all');cn{find&lt;br&gt;
&amp;gt; (iscolor)}&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I get no color whereas it is very much blue to me, which &lt;br&gt;
&amp;gt; you can see from the code below. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; new = im2uint8(ones([128 128 3]));&lt;br&gt;
&amp;gt; new(:,:,1) = 88;&lt;br&gt;
&amp;gt; new(:,:,2) = 110;&lt;br&gt;
&amp;gt; new(:,:,3) = 255;&lt;br&gt;
&amp;gt; figure,imshow(new);&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I think I will need to add this into the fuzzycolor's &lt;br&gt;
&amp;gt; database. I am still working on it. Probably you can &lt;br&gt;
&amp;gt; through more insight on it.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Vihang&lt;br&gt;
&lt;br&gt;
Yes, I may have missed some blues when I built&lt;br&gt;
the database. As I recall, I did try to provide an&lt;br&gt;
ability to add to or change the database.&lt;br&gt;
&lt;br&gt;
A problem is that what I considered to be a blue,&lt;br&gt;
on MY monitor, may not always coincide with&lt;br&gt;
others opinion of a blue. There are several issues&lt;br&gt;
of metamerism here to deal with. If your monitor&lt;br&gt;
is set up with a higher or lower color temperature,&lt;br&gt;
then blues might change. Or suppose one of us&lt;br&gt;
is moderately color blind, perhaps protoanomalous&lt;br&gt;
(red-green) or even tritananomalous (yellow-blue).&lt;br&gt;
Even a minor amount of such an effect can influence&lt;br&gt;
how you might see colors differently from me. Since&lt;br&gt;
different people can have subtly different pigments&lt;br&gt;
in their cones, they can see colors differently even&lt;br&gt;
if not color blind at all.&lt;br&gt;
&lt;br&gt;
These issues are why I called it fuzzy color. The&lt;br&gt;
boundaries of a color name region will be both&lt;br&gt;
irregular and fuzzy. In fact, some color name&lt;br&gt;
regions may even overlap, i.e., colors near the&lt;br&gt;
boundary of two color names like yellow/green,&lt;br&gt;
might be arguably both yellow and green.&lt;br&gt;
&lt;br&gt;
For your work, a simple solution is to build/modify&lt;br&gt;
the database for your own eyes &amp; monitor. Ask if&lt;br&gt;
you have questions. I'd have to revisit the code,&lt;br&gt;
but it was not hard to do using the buildfuzzyluts&lt;br&gt;
function that I provided. The idea is it pops up&lt;br&gt;
a series of color planes, then you encircle those&lt;br&gt;
colors which satisfy your colorname with a&lt;br&gt;
polygon in each plane.&lt;br&gt;
&lt;br&gt;
John&lt;br&gt;
&lt;br&gt;
</description>
    </item>
  </channel>
</rss>
