<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/242604</link>
    <title>MATLAB Central Newsreader - blue and white Logical image</title>
    <description>Feed for thread: blue and white Logical image</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>Sat, 17 Jan 2009 18:10:03 -0500</pubDate>
      <title>blue and white Logical image</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/242604#622279</link>
      <author>Henry Bourne</author>
      <description>Hi guys,&lt;br&gt;
&lt;br&gt;
I have a logical array representing an image. this was created from an rgb array using im2bw with a classification threshold set.&lt;br&gt;
&lt;br&gt;
The logical result is correct, but when I show it on an axis (using image()) in my GUI it appears blue and white, not black and white as I'd like.&lt;br&gt;
&lt;br&gt;
If I run the program in debug mode, and manually enter the im2bw and image()  lines it appears black and white... I'm not sure what's going on!&lt;br&gt;
&lt;br&gt;
Can anyone offer some advice? I'm using 7.6.0 R2008a. Have built the gui using the guide utility.&lt;br&gt;
&lt;br&gt;
Thanks very much.</description>
    </item>
    <item>
      <pubDate>Sat, 17 Jan 2009 20:56:02 -0500</pubDate>
      <title>Re: blue and white Logical image</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/242604#622288</link>
      <author>Sadik </author>
      <description>&quot;Henry Bourne&quot; &amp;lt;henrybourne.remove_-_this@mac.com&amp;gt; wrote in message &amp;lt;gkt6tr$9tv$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi guys,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I have a logical array representing an image. this was created from an rgb array using im2bw with a classification threshold set.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; The logical result is correct, but when I show it on an axis (using image()) in my GUI it appears blue and white, not black and white as I'd like.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; If I run the program in debug mode, and manually enter the im2bw and image()  lines it appears black and white... I'm not sure what's going on!&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Can anyone offer some advice? I'm using 7.6.0 R2008a. Have built the gui using the guide utility.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks very much.&lt;br&gt;
&lt;br&gt;
I don't know exactly but maybe you could try playing with the colormap of the figure like the following:&lt;br&gt;
&lt;br&gt;
colormap(gray)&lt;br&gt;
&lt;br&gt;
Because I had the same problem and the zero values were shown with dark blue.&lt;br&gt;
&lt;br&gt;
Hope it helps.</description>
    </item>
    <item>
      <pubDate>Sun, 18 Jan 2009 01:04:02 -0500</pubDate>
      <title>Re: blue and white Logical image</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/242604#622308</link>
      <author>Henry Bourne</author>
      <description>&amp;gt; I don't know exactly but maybe you could try playing with the colormap of the figure like the following:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; colormap(gray)&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Because I had the same problem and the zero values were shown with dark blue.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Hope it helps.&lt;br&gt;
&lt;br&gt;
Figured it out. &lt;br&gt;
&lt;br&gt;
It displays in black and white if I use imshow() instead of image().  Not entirely sure of the specifics why... But it works!&lt;br&gt;
&lt;br&gt;
Thanks!</description>
    </item>
  </channel>
</rss>

