<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/262589</link>
    <title>MATLAB Central Newsreader - Displaying 3 channel data of values larger than 1</title>
    <description>Feed for thread: Displaying 3 channel data of values larger than 1</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, 08 Oct 2009 08:10:05 -0400</pubDate>
      <title>Displaying 3 channel data of values larger than 1</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/262589#685522</link>
      <author>kees de Kapper</author>
      <description>Hi all,&lt;br&gt;
&lt;br&gt;
I've got 3 channel data (call it pseudo RGB, e.g. 100x100x3) with values larger than 1. &lt;br&gt;
When I push this image to imshow or imagesc it complains that it cannot be displayed since values are &amp;lt;0 or &amp;gt;1 (no true color data).&lt;br&gt;
&lt;br&gt;
How can I solve this problem, in other words, how can I display the image scaled between min and max values without affecting the original data.&lt;br&gt;
&lt;br&gt;
thanx in advance,&lt;br&gt;
Kees</description>
    </item>
    <item>
      <pubDate>Thu, 08 Oct 2009 09:40:05 -0400</pubDate>
      <title>Re: Displaying 3 channel data of values larger than 1</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/262589#685550</link>
      <author>Darren Rowland</author>
      <description>&lt;br&gt;
&lt;br&gt;
If you don't want the scaling to effect the original you can either make a copy of the array or apply the scaling inline to the call to imagesc e.g.&lt;br&gt;
&lt;br&gt;
imagesc((A-min(A(:)))/(max(A(:))-min(A(:))))</description>
    </item>
    <item>
      <pubDate>Thu, 08 Oct 2009 10:03:05 -0400</pubDate>
      <title>Re: Displaying 3 channel data of values larger than 1</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/262589#685555</link>
      <author>kees de Kapper</author>
      <description>&amp;gt; &quot;Darren Rowland&quot; &amp;lt;darrenjremovethisrowland@hotmail.com&amp;gt; wrote in message &lt;br&gt;
&lt;br&gt;
Thanx for reply. &lt;br&gt;
&lt;br&gt;
In the solution you mentioned, there is still an affection of the CData stored by the image-handle. &lt;br&gt;
Isn't there a solution using colormaps?</description>
    </item>
  </channel>
</rss>

