<?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: Four Color Images</title>
	<link>http://blogs.mathworks.com/loren/2009/03/25/four-color-images/</link>
	<description>Loren Shure  works on design of the MATLAB language at &#60;a href="http://www.mathworks.com/"&#62;The MathWorks&#60;/a&#62;. She writes here about once a week on MATLAB programming and related topics. &#60;br&#62;&#60;br&#62;&#60;a href="/images/loren-full.jpg"&#62;&#60;img src="/images/loren.jpg"&#62;&#60;/a&#62;</description>
	<pubDate>Mon, 23 Nov 2009 00:33:14 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: Jake</title>
		<link>http://blogs.mathworks.com/loren/2009/03/25/four-color-images/#comment-30187</link>
		<dc:creator>Jake</dc:creator>
		<pubDate>Sun, 05 Apr 2009 22:53:29 +0000</pubDate>
		<guid>http://blogs.mathworks.com/loren/2009/03/25/four-color-images/#comment-30187</guid>
		<description>I really like the VIVID colormap, especially for contour type plots.
http://www.mathworks.com/matlabcentral/fileexchange/20848</description>
		<content:encoded><![CDATA[<p>I really like the VIVID colormap, especially for contour type plots.<br />
<a href="http://www.mathworks.com/matlabcentral/fileexchange/20848" rel="nofollow">http://www.mathworks.com/matlabcentral/fileexchange/20848</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob</title>
		<link>http://blogs.mathworks.com/loren/2009/03/25/four-color-images/#comment-30179</link>
		<dc:creator>Bob</dc:creator>
		<pubDate>Thu, 02 Apr 2009 18:06:47 +0000</pubDate>
		<guid>http://blogs.mathworks.com/loren/2009/03/25/four-color-images/#comment-30179</guid>
		<description>FYI, an implementation of some Light-Bartlein colormaps is available on the File Exchange.
http://www.mathworks.com/matlabcentral/fileexchange/17555</description>
		<content:encoded><![CDATA[<p>FYI, an implementation of some Light-Bartlein colormaps is available on the File Exchange.<br />
<a href="http://www.mathworks.com/matlabcentral/fileexchange/17555" rel="nofollow">http://www.mathworks.com/matlabcentral/fileexchange/17555</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Henson</title>
		<link>http://blogs.mathworks.com/loren/2009/03/25/four-color-images/#comment-30154</link>
		<dc:creator>Rob Henson</dc:creator>
		<pubDate>Thu, 26 Mar 2009 16:11:17 +0000</pubDate>
		<guid>http://blogs.mathworks.com/loren/2009/03/25/four-color-images/#comment-30154</guid>
		<description>KMEANS clustering is a nice way to pick the colours.

[c,ctrs] = kmeans(double(Ic(:)),4,'Distance','sqeuc');
imshow(reshape(c,size(Ic)),cm);</description>
		<content:encoded><![CDATA[<p>KMEANS clustering is a nice way to pick the colours.</p>
<p>[c,ctrs] = kmeans(double(Ic(:)),4,&#8217;Distance&#8217;,&#8217;sqeuc&#8217;);<br />
imshow(reshape(c,size(Ic)),cm);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jody  Klymak</title>
		<link>http://blogs.mathworks.com/loren/2009/03/25/four-color-images/#comment-30153</link>
		<dc:creator>Jody  Klymak</dc:creator>
		<pubDate>Thu, 26 Mar 2009 15:56:10 +0000</pubDate>
		<guid>http://blogs.mathworks.com/loren/2009/03/25/four-color-images/#comment-30153</guid>
		<description>I updated my page so it is not such a mess. 

I don't think there is anything inherently wrong with jet.  However, I would love to see some of the other Light and Bartlein colormaps made part of matlab, and included in the tutorials. IBM seems to have stalled out on some of this research, but there is enough of it in the public domain that the Mathworks could make some progress.</description>
		<content:encoded><![CDATA[<p>I updated my page so it is not such a mess. </p>
<p>I don&#8217;t think there is anything inherently wrong with jet.  However, I would love to see some of the other Light and Bartlein colormaps made part of matlab, and included in the tutorials. IBM seems to have stalled out on some of this research, but there is enough of it in the public domain that the Mathworks could make some progress.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Loren</title>
		<link>http://blogs.mathworks.com/loren/2009/03/25/four-color-images/#comment-30150</link>
		<dc:creator>Loren</dc:creator>
		<pubDate>Thu, 26 Mar 2009 14:04:47 +0000</pubDate>
		<guid>http://blogs.mathworks.com/loren/2009/03/25/four-color-images/#comment-30150</guid>
		<description>Thanks Jonas and Jeff for some more great article links.  It's really worthwhile to take a look at them.

--Loren</description>
		<content:encoded><![CDATA[<p>Thanks Jonas and Jeff for some more great article links.  It&#8217;s really worthwhile to take a look at them.</p>
<p>&#8211;Loren</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Mather</title>
		<link>http://blogs.mathworks.com/loren/2009/03/25/four-color-images/#comment-30149</link>
		<dc:creator>Jeff Mather</dc:creator>
		<pubDate>Thu, 26 Mar 2009 13:33:23 +0000</pubDate>
		<guid>http://blogs.mathworks.com/loren/2009/03/25/four-color-images/#comment-30149</guid>
		<description>I'm glad to see people talking about making colormaps that faithfully represent the data.  It's a big pet peeve of mine to see bad colormaps.  (I know this has little to do with the Shep Fairey part of your post.&#160;.&#160;.&#160;.)

After creating the colors for your colormap, you may want to run some MATLAB code to preview how it will look for the 5% of the population that has some form of color confusion:  &lt;a href="http://jeffmatherphotography.com/dispatches/2008/02/electronic-imaging-2008-color-universal-design-and-a-matlab-based-simulator/" rel="nofollow"&gt;Color Universal Design and a MATLAB-based Simulator&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>I&#8217;m glad to see people talking about making colormaps that faithfully represent the data.  It&#8217;s a big pet peeve of mine to see bad colormaps.  (I know this has little to do with the Shep Fairey part of your post.&nbsp;.&nbsp;.&nbsp;.)</p>
<p>After creating the colors for your colormap, you may want to run some MATLAB code to preview how it will look for the 5% of the population that has some form of color confusion:  <a href="http://jeffmatherphotography.com/dispatches/2008/02/electronic-imaging-2008-color-universal-design-and-a-matlab-based-simulator/" rel="nofollow">Color Universal Design and a MATLAB-based Simulator</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonas</title>
		<link>http://blogs.mathworks.com/loren/2009/03/25/four-color-images/#comment-30148</link>
		<dc:creator>Jonas</dc:creator>
		<pubDate>Thu, 26 Mar 2009 12:18:26 +0000</pubDate>
		<guid>http://blogs.mathworks.com/loren/2009/03/25/four-color-images/#comment-30148</guid>
		<description>I have been using either grayscale or "perceptual colormaps" as discussed in http://www.research.ibm.com/people/l/lloydt/color/color.HTM ever since I read that article. 
It is amazing how much difference a colormap makes in interpreting data. Check for example peaks (or abs(peaks)) with jet vs grayscale and notice how you are being influenced by the colors.</description>
		<content:encoded><![CDATA[<p>I have been using either grayscale or &#8220;perceptual colormaps&#8221; as discussed in <a href="http://www.research.ibm.com/people/l/lloydt/color/color.HTM" rel="nofollow">http://www.research.ibm.com/people/l/lloydt/color/color.HTM</a> ever since I read that article.<br />
It is amazing how much difference a colormap makes in interpreting data. Check for example peaks (or abs(peaks)) with jet vs grayscale and notice how you are being influenced by the colors.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Loren</title>
		<link>http://blogs.mathworks.com/loren/2009/03/25/four-color-images/#comment-30147</link>
		<dc:creator>Loren</dc:creator>
		<pubDate>Thu, 26 Mar 2009 11:32:00 +0000</pubDate>
		<guid>http://blogs.mathworks.com/loren/2009/03/25/four-color-images/#comment-30147</guid>
		<description>Thanks for all the comments!   Yes, there are lots of ways to divide the data into bins and Cris shows one that makes the bins approximately equal.  I think some will find Jody's colormap illustration useful too.

There are no plans to change jet.  If you know of particular research or  a particular colormap, feel free to point us to it.

--Loren</description>
		<content:encoded><![CDATA[<p>Thanks for all the comments!   Yes, there are lots of ways to divide the data into bins and Cris shows one that makes the bins approximately equal.  I think some will find Jody&#8217;s colormap illustration useful too.</p>
<p>There are no plans to change jet.  If you know of particular research or  a particular colormap, feel free to point us to it.</p>
<p>&#8211;Loren</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cris Luengo</title>
		<link>http://blogs.mathworks.com/loren/2009/03/25/four-color-images/#comment-30144</link>
		<dc:creator>Cris Luengo</dc:creator>
		<pubDate>Thu, 26 Mar 2009 08:29:33 +0000</pubDate>
		<guid>http://blogs.mathworks.com/loren/2009/03/25/four-color-images/#comment-30144</guid>
		<description>Hi Loren,

Instead of manually finding the 3 thresholds you use to divide up the gray-values, you could do something like this. It will find values such that each color gets the same number of pixels:

h=hist(double(Ic(:)),0:255);
ch=cumsum(h);
levels(2)=find(ch&#60;(ch(end)*1/4),1,'last')-1;
levels(3)=find(ch&#60;(ch(end)*2/4),1,'last')-1;
levels(4)=find(ch&#60;(ch(end)*3/4),1,'last')-1;


Talking about color maps, is there any interest at The MathWorks to change the colormap generated by `jet`? It has some very strong bands at yellow and cyan, the blue section is way longer than the red one, and there hardly is any green (which is the color we're best at distinguishing different shades of). Not that I know how to do it better, but I'm sure there has been quite a bit of research on this over the years.

Cheers,
Cris.</description>
		<content:encoded><![CDATA[<p>Hi Loren,</p>
<p>Instead of manually finding the 3 thresholds you use to divide up the gray-values, you could do something like this. It will find values such that each color gets the same number of pixels:</p>
<p>h=hist(double(Ic(:)),0:255);<br />
ch=cumsum(h);<br />
levels(2)=find(ch&lt;(ch(end)*1/4),1,&#8217;last&#8217;)-1;<br />
levels(3)=find(ch&lt;(ch(end)*2/4),1,&#8217;last&#8217;)-1;<br />
levels(4)=find(ch&lt;(ch(end)*3/4),1,&#8217;last&#8217;)-1;</p>
<p>Talking about color maps, is there any interest at The MathWorks to change the colormap generated by `jet`? It has some very strong bands at yellow and cyan, the blue section is way longer than the red one, and there hardly is any green (which is the color we&#8217;re best at distinguishing different shades of). Not that I know how to do it better, but I&#8217;m sure there has been quite a bit of research on this over the years.</p>
<p>Cheers,<br />
Cris.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jody  Klymak</title>
		<link>http://blogs.mathworks.com/loren/2009/03/25/four-color-images/#comment-30142</link>
		<dc:creator>Jody  Klymak</dc:creator>
		<pubDate>Thu, 26 Mar 2009 00:42:26 +0000</pubDate>
		<guid>http://blogs.mathworks.com/loren/2009/03/25/four-color-images/#comment-30142</guid>
		<description>Inspired by Light and Bartlein I made a mess of colormaps.  The write up is partly a mess, and the code worse, but I'll post it here for others to play with.

&lt;a href="http://web.uvic.ca/~jklymak/perceptcmap/TestColor.html" rel="nofollow"&gt;http://web.uvic.ca/~jklymak/perceptcmap/TestColor.html&lt;/a&gt;

&lt;a href="http://web.uvic.ca/~jklymak/perceptcmap/perceptcmap.tgz" rel="nofollow"&gt;perceptcmap.tgz&lt;/a&gt;

I basically use colCog.m whenever I have data that goes from negative to positive, and I want zero to be washed out.  Does much better than jet or a jet-derivative that replaces green w/ white at the middle.  A number of colleagues use bright red to bright blue as well (&lt;a href="http://web.uvic.ca/~jklymak/Revelle/Ts3Shears.jpg" rel="nofollow"&gt;Ts3Shears.jpg&lt;/a&gt;) but that always seems to draw my eye to the red more than the blue.</description>
		<content:encoded><![CDATA[<p>Inspired by Light and Bartlein I made a mess of colormaps.  The write up is partly a mess, and the code worse, but I&#8217;ll post it here for others to play with.</p>
<p><a href="http://web.uvic.ca/~jklymak/perceptcmap/TestColor.html" rel="nofollow">http://web.uvic.ca/~jklymak/perceptcmap/TestColor.html</a></p>
<p><a href="http://web.uvic.ca/~jklymak/perceptcmap/perceptcmap.tgz" rel="nofollow">perceptcmap.tgz</a></p>
<p>I basically use colCog.m whenever I have data that goes from negative to positive, and I want zero to be washed out.  Does much better than jet or a jet-derivative that replaces green w/ white at the middle.  A number of colleagues use bright red to bright blue as well (<a href="http://web.uvic.ca/~jklymak/Revelle/Ts3Shears.jpg" rel="nofollow">Ts3Shears.jpg</a>) but that always seems to draw my eye to the red more than the blue.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
