<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Counting occurrences of image colors</title>
	<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 &#60;a href="http://www.mathworks.com/"&#62;The MathWorks&#60;/a&#62; and coauthored &#60;a href="http://www.mathworks.com/support/books/book5291.html?category=-1&#38;language=-1"&#62;Digital Image Processing Using MATLAB&#60;/a&#62;. He writes here about image processing concepts, algorithm implementations, and MATLAB.&#60;br&#62;&#60;br&#62;&#60;img&#62;</description>
	<pubDate>Sun, 08 Nov 2009 01:43:52 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<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>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>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 "column_data".

Error in ==&#62; 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>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>http://blogs.mathworks.com/steve/2008/01/31/counting-occurrences-of-image-colors/#comment-21626</guid>
		<description>I'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>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>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>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>http://blogs.mathworks.com/steve/2008/01/31/counting-occurrences-of-image-colors/#comment-19631</guid>
		<description>two minor comments

- let'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>
