<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Counting occurrences of image colors</title>
	<atom:link href="http://blogs.mathworks.com/steve/2008/01/31/counting-occurrences-of-image-colors/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.mathworks.com/steve/2008/01/31/counting-occurrences-of-image-colors/</link>
	<description>Steve Eddins manages the Image &#38; Geospatial development team at The MathWorks and coauthored Digital Image Processing Using MATLAB. He writes here about image processing concepts, algorithm implementations, and MATLAB.</description>
	<lastBuildDate>Sat, 11 Feb 2012 18:27:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: mano</title>
		<link>http://blogs.mathworks.com/steve/2008/01/31/counting-occurrences-of-image-colors/#comment-22949</link>
		<dc:creator>mano</dc:creator>
		<pubDate>Fri, 02 Apr 2010 06:47:35 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2008/01/31/counting-occurrences-of-image-colors/#comment-22949</guid>
		<description>Hi 

This the same question as Austin, how find the second largest color, as u said i sorted the color_counts. And after that i did not  understand . The permutation index, to re-order the the colors in the unique_colors matrix.

How to do it can u please tell..

Thank You ..</description>
		<content:encoded><![CDATA[<p>Hi </p>
<p>This the same question as Austin, how find the second largest color, as u said i sorted the color_counts. And after that i did not  understand . The permutation index, to re-order the the colors in the unique_colors matrix.</p>
<p>How to do it can u please tell..</p>
<p>Thank You ..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2008/01/31/counting-occurrences-of-image-colors/#comment-22053</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Mon, 17 Aug 2009 17:25:12 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2008/01/31/counting-occurrences-of-image-colors/#comment-22053</guid>
		<description>Arto&#8212;Thanks. I fixed it.</description>
		<content:encoded><![CDATA[<p>Arto&mdash;Thanks. I fixed it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: arto</title>
		<link>http://blogs.mathworks.com/steve/2008/01/31/counting-occurrences-of-image-colors/#comment-22031</link>
		<dc:creator>arto</dc:creator>
		<pubDate>Wed, 05 Aug 2009 18:52:12 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2008/01/31/counting-occurrences-of-image-colors/#comment-22031</guid>
		<description>Hi,code gives error.

&lt;pre&gt;
 Undefined function or variable &quot;column_data&quot;.

Error in ==&gt; count_occ_stev at 84
size(column_data)
&lt;/pre&gt;
Thanks</description>
		<content:encoded><![CDATA[<p>Hi,code gives error.</p>
<pre>
 Undefined function or variable "column_data".

Error in ==&gt; count_occ_stev at 84
size(column_data)
</pre>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2008/01/31/counting-occurrences-of-image-colors/#comment-21637</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Thu, 02 Apr 2009 17:28:20 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2008/01/31/counting-occurrences-of-image-colors/#comment-21637</guid>
		<description>Gustavo&#8212;All the functions used in this post except for &lt;tt&gt;imshow&lt;/tt&gt; are in MATLAB.</description>
		<content:encoded><![CDATA[<p>Gustavo&mdash;All the functions used in this post except for <tt>imshow</tt> are in MATLAB.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gustavo</title>
		<link>http://blogs.mathworks.com/steve/2008/01/31/counting-occurrences-of-image-colors/#comment-21626</link>
		<dc:creator>Gustavo</dc:creator>
		<pubDate>Tue, 31 Mar 2009 14:58:30 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2008/01/31/counting-occurrences-of-image-colors/#comment-21626</guid>
		<description>I&#039;am a student and this is very intersting to a project that iám working but i have a question this works in MATLAB without the Image Processing Toolbox?</description>
		<content:encoded><![CDATA[<p>I&#8217;am a student and this is very intersting to a project that iám working but i have a question this works in MATLAB without the Image Processing Toolbox?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2008/01/31/counting-occurrences-of-image-colors/#comment-21591</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Thu, 19 Mar 2009 20:01:59 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2008/01/31/counting-occurrences-of-image-colors/#comment-21591</guid>
		<description>Austin&#8212;Sort the &lt;tt&gt;color_counts&lt;/tt&gt; vector.  Use the second output from &lt;tt&gt;sort&lt;/tt&gt;, the permutation index, to re-order the the colors in the &lt;tt&gt;unique_colors&lt;/tt&gt; matrix.  Pick off the first three rows.</description>
		<content:encoded><![CDATA[<p>Austin&mdash;Sort the <tt>color_counts</tt> vector.  Use the second output from <tt>sort</tt>, the permutation index, to re-order the the colors in the <tt>unique_colors</tt> matrix.  Pick off the first three rows.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Austin</title>
		<link>http://blogs.mathworks.com/steve/2008/01/31/counting-occurrences-of-image-colors/#comment-21586</link>
		<dc:creator>Austin</dc:creator>
		<pubDate>Thu, 19 Mar 2009 17:29:46 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2008/01/31/counting-occurrences-of-image-colors/#comment-21586</guid>
		<description>Taking this a step further how could you get matlab to count and display not just the maximum occurring color but the top three color occurrences and their locations? Thank you very much for your time.</description>
		<content:encoded><![CDATA[<p>Taking this a step further how could you get matlab to count and display not just the maximum occurring color but the top three color occurrences and their locations? Thank you very much for your time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2008/01/31/counting-occurrences-of-image-colors/#comment-19638</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Fri, 01 Feb 2008 13:12:15 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2008/01/31/counting-occurrences-of-image-colors/#comment-19638</guid>
		<description>Thanks, Urs.</description>
		<content:encoded><![CDATA[<p>Thanks, Urs.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Urs (us) Schwarz</title>
		<link>http://blogs.mathworks.com/steve/2008/01/31/counting-occurrences-of-image-colors/#comment-19631</link>
		<dc:creator>Urs (us) Schwarz</dc:creator>
		<pubDate>Fri, 01 Feb 2008 09:53:14 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2008/01/31/counting-occurrences-of-image-colors/#comment-19631</guid>
		<description>two minor comments

- let&#039;s not forget the typical approach

     v=10*[1 1 3 5 5 2 3 2 2];
     [nc,newix]=histc(v,unique(v));

% which comes with the added bonus of re-indexing the
% values in v in ascending order from 1:#uniques

     nc
     [v;newix]

- using the option FIRST, unique returns the index to the first rather than the last occurrence (default behavior) of unique values in the second output argument

us</description>
		<content:encoded><![CDATA[<p>two minor comments</p>
<p>- let&#8217;s not forget the typical approach</p>
<p>     v=10*[1 1 3 5 5 2 3 2 2];<br />
     [nc,newix]=histc(v,unique(v));</p>
<p>% which comes with the added bonus of re-indexing the<br />
% values in v in ascending order from 1:#uniques</p>
<p>     nc<br />
     [v;newix]</p>
<p>- using the option FIRST, unique returns the index to the first rather than the last occurrence (default behavior) of unique values in the second output argument</p>
<p>us</p>
]]></content:encoded>
	</item>
</channel>
</rss>

