<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/255161</link>
    <title>MATLAB Central Newsreader - color based segmentation</title>
    <description>Feed for thread: color based segmentation</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>Thu, 02 Jul 2009 10:32:02 -0400</pubDate>
      <title>color based segmentation</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/255161#662147</link>
      <author>rubionelove </author>
      <description>Hi all,&lt;br&gt;
I did the tutorials with LAB color space in the demo section but in my case the image don't have well separated regions. In my image regions of different colours are very close one from another and do not have strong edges.&lt;br&gt;
I don't want to use tools like &quot;ginput&quot;, &quot;roipoly&quot; or similar to define colour region because, I've to analyze a sequence and colours may change a lot.&lt;br&gt;
&lt;br&gt;
I would like to classify areas that have similar colours, create a blob for each area, and label the blobs.&lt;br&gt;
&lt;br&gt;
any suggestions?&lt;br&gt;
&lt;br&gt;
Thanks to all </description>
    </item>
    <item>
      <pubDate>Thu, 02 Jul 2009 13:02:49 -0400</pubDate>
      <title>Re: color based segmentation</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/255161#662190</link>
      <author>ImageAnalyst</author>
      <description>On Jul 2, 6:32&#160;am, &quot;rubionelove &quot; &amp;lt;rubionel...@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; Hi all,&lt;br&gt;
&amp;gt; I did the tutorials with LAB color space in the demo section but in my case the image don't have well separated regions. In my image regions of different colours are very close one from another and do not have strong edges.&lt;br&gt;
&amp;gt; I don't want to use tools like &quot;ginput&quot;, &quot;roipoly&quot; or similar to define colour region because, I've to analyze a sequence and colours may change a lot.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I would like to classify areas that have similar colours, create a blob for each area, and label the blobs.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; any suggestions?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Thanks to all&lt;br&gt;
&lt;br&gt;
-------------------------------------------------------------------------------------------------------------------&lt;br&gt;
Yes, that's true.  Often you don't have well separated color&lt;br&gt;
clusters.  The colors often just blend continuously from one to&lt;br&gt;
another and there's often no clear dividing line.  For example, look&lt;br&gt;
at the color ramps in the MATLAB help documentation for the colormap()&lt;br&gt;
function.  Now where does the &quot;winter&quot; ramp change from blue to&lt;br&gt;
green?  Where does the &quot;spring&quot; ramp change from magenta to yellow.&lt;br&gt;
As you can see, it's a judgement call.  As another example, look at&lt;br&gt;
the photo of the rose on this page:&lt;br&gt;
&lt;a href=&quot;http://en.wikipedia.org/wiki/Color_quantization&quot;&gt;http://en.wikipedia.org/wiki/Color_quantization&lt;/a&gt;&lt;br&gt;
and look at the gamut on the same page.  You can see that the gamut is&lt;br&gt;
continuous with no clear dividing lines.  You can also see there one&lt;br&gt;
possible way of dividing the gamut up into a smaller number of color&lt;br&gt;
classes.&lt;br&gt;
&lt;br&gt;
But there is no &quot;right&quot; answer, except that if it works for your&lt;br&gt;
situation, then it's &quot;right&quot; for you.  So you just have to carve up&lt;br&gt;
the color space in some sort of way that produces acceptable&lt;br&gt;
segmentation for you.  There are lots of color segmentation method&lt;br&gt;
based on clustering.  I can't give a tutorial on all of them because&lt;br&gt;
there's way too many and I don't have the time, so all I can do is to&lt;br&gt;
give you a few suggestions (like you asked) to research it further.&lt;br&gt;
Other than the Wikipedia page, you might try downloading this plug in&lt;br&gt;
for ImageJ:&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;
It's an excellent tool for visualizing the gamut of your image(s) and&lt;br&gt;
may help you decide where to segment.&lt;br&gt;
&lt;br&gt;
Good Luck</description>
    </item>
    <item>
      <pubDate>Thu, 02 Jul 2009 13:11:01 -0400</pubDate>
      <title>Re: color based segmentation</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/255161#662196</link>
      <author>rubionelove </author>
      <description>briefly I have to create blobs for each image region that have similar colour &lt;br&gt;
thanks to all again &lt;br&gt;
&lt;br&gt;
regards</description>
    </item>
    <item>
      <pubDate>Thu, 02 Jul 2009 13:25:02 -0400</pubDate>
      <title>Re: color based segmentation</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/255161#662200</link>
      <author>rubionelove </author>
      <description>thanks Image Analyst, &lt;br&gt;
I understand...  but I'm working on a sequence of aerial images of cars.&lt;br&gt;
Cars can assume a range of different colours. I can't define a way to segment a colour, I would like a scalable solution.&lt;br&gt;
&lt;br&gt;
I would like to define a treshold and then join in a separate blob each uniform area, for example, in the case of the rose, I would like a green blob and a yellow blob.&lt;br&gt;
How can I do that?&lt;br&gt;
&lt;br&gt;
thank you very much</description>
    </item>
    <item>
      <pubDate>Thu, 02 Jul 2009 14:01:09 -0400</pubDate>
      <title>Re: color based segmentation</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/255161#662216</link>
      <author>ImageAnalyst</author>
      <description>On Jul 2, 9:25&#160;am, &quot;rubionelove &quot; &amp;lt;rubionel...@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; thanks Image Analyst,&lt;br&gt;
&amp;gt; I understand... &#160;but I'm working on a sequence of aerial images of cars.&lt;br&gt;
&amp;gt; Cars can assume a range of different colours. I can't define a way to segment a colour, I would like a scalable solution.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I would like to define a treshold and then join in a separate blob each uniform area, for example, in the case of the rose, I would like a green blob and a yellow blob.&lt;br&gt;
&amp;gt; How can I do that?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; thank you very much&lt;br&gt;
&lt;br&gt;
-----------------------------------------------------------------------------------------&lt;br&gt;
Can you post a photo somewhere?  What do you really want to do?  Do&lt;br&gt;
you want to count cars?  Do you want to get the size distribution of&lt;br&gt;
cars?  Do you want to give a distribution of the dominant car colors?&lt;br&gt;
The answer to this question will determine if you really even need to&lt;br&gt;
do color classification or if you should do some standard image&lt;br&gt;
processing such as edge detection, morphology, etc.</description>
    </item>
    <item>
      <pubDate>Fri, 03 Jul 2009 10:03:01 -0400</pubDate>
      <title>Re: color based segmentation</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/255161#662478</link>
      <author>rubionelove </author>
      <description>ok I try to explain clearly&lt;br&gt;
&lt;br&gt;
this is my original image named Im&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.flickr.com/photos/andreconte/3683396613/sizes/l/&quot;&gt;http://www.flickr.com/photos/andreconte/3683396613/sizes/l/&lt;/a&gt;&lt;br&gt;
----------------------------&lt;br&gt;
then I apply a treshold to each colorplane and I recombine in one binary image&lt;br&gt;
&lt;br&gt;
imR = squeeze(Im(:,:,1));&lt;br&gt;
imG = squeeze(Im(:,:,2));&lt;br&gt;
imB = squeeze(Im(:,:,3));&lt;br&gt;
&lt;br&gt;
imBinaryR = im2bw(imR,graythresh(imR));&lt;br&gt;
imBinaryG = im2bw(imG,graythresh(imG));&lt;br&gt;
imBinaryB = im2bw(imB,graythresh(imB));&lt;br&gt;
imBinary = imcomplement(imBinaryR&amp;imBinaryG&amp;imBinaryB);&lt;br&gt;
&lt;br&gt;
result :&lt;br&gt;
&lt;a href=&quot;http://www.flickr.com/photos/andreconte/3683396643/sizes/l/&quot;&gt;http://www.flickr.com/photos/andreconte/3683396643/sizes/l/&lt;/a&gt;&lt;br&gt;
----------------------------&lt;br&gt;
I made a ROI mask for all the sequence&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.flickr.com/photos/andreconte/3684208260/sizes/l/&quot;&gt;http://www.flickr.com/photos/andreconte/3684208260/sizes/l/&lt;/a&gt;&lt;br&gt;
----------------------------&lt;br&gt;
after that I fill holes with 'imfill' function&lt;br&gt;
the final result is&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.flickr.com/photos/andreconte/3683396699/sizes/l/&quot;&gt;http://www.flickr.com/photos/andreconte/3683396699/sizes/l/&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
-------------------------&lt;br&gt;
&lt;br&gt;
now I would like to identify separates blob for each region that have similar colour in this image&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.flickr.com/photos/andreconte/3683439445/sizes/m/&quot;&gt;http://www.flickr.com/photos/andreconte/3683439445/sizes/m/&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Is it possible to make it with a simple approach (color segmentation and edge detection)?&lt;br&gt;
I would avoid machine learning on car features because is too much complicated for the experience I have.&lt;br&gt;
&lt;br&gt;
Thank you for your advices Imageanalyst&lt;br&gt;
best regards</description>
    </item>
    <item>
      <pubDate>Fri, 03 Jul 2009 10:37:01 -0400</pubDate>
      <title>Re: color based segmentation</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/255161#662489</link>
      <author>hima </author>
      <description>&quot;rubionelove &quot; &amp;lt;rubionelove@gmail.com&amp;gt; wrote in message &amp;lt;h2i2b1$2aq$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi all,&lt;br&gt;
&amp;gt; I did the tutorials with LAB color space in the demo section but in my case the image don't have well separated regions. In my image regions of different colours are very close one from another and do not have strong edges.&lt;br&gt;
&amp;gt; I don't want to use tools like &quot;ginput&quot;, &quot;roipoly&quot; or similar to define colour region because, I've to analyze a sequence and colours may change a lot.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I would like to classify areas that have similar colours, create a blob for each area, and label the blobs.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; any suggestions?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks to all &lt;br&gt;
&lt;br&gt;
hii all,&lt;br&gt;
im doing my work on images.i wat the images to be segmented.can i have a code for that??</description>
    </item>
    <item>
      <pubDate>Tue, 07 Jul 2009 07:46:07 -0400</pubDate>
      <title>Re: color based segmentation</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/255161#663135</link>
      <author>rubionelove </author>
      <description>Image analist, have you any suggestions?&lt;br&gt;
regards</description>
    </item>
  </channel>
</rss>

