<?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: All about pixel colors: Scaled indexed images</title>
	<link>http://blogs.mathworks.com/steve/2006/02/10/all-about-pixel-colors-part-3/</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 04:09:26 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2006/02/10/all-about-pixel-colors-part-3/#comment-22001</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Fri, 24 Jul 2009 00:48:37 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2006/02/10/all-about-pixel-colors-part-3/#comment-22001</guid>
		<description>Ilan&#8212;Try my &lt;a href="http://www.mathworks.com/matlabcentral/fileexchange/10502" rel="nofollow"&gt;imoverview function&lt;/a&gt; on the MATLAB Central File Exchange. Compute the mask using something like this:

&lt;pre&gt;
bw = abs(A - 1.2) &lt;= tolerance;
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Ilan&mdash;Try my <a href="http://www.mathworks.com/matlabcentral/fileexchange/10502" rel="nofollow">imoverview function</a> on the MATLAB Central File Exchange. Compute the mask using something like this:</p>
<pre>
bw = abs(A - 1.2) < = tolerance;
</pre>
</pre>]]></content:encoded>
	</item>
	<item>
		<title>By: Ilan</title>
		<link>http://blogs.mathworks.com/steve/2006/02/10/all-about-pixel-colors-part-3/#comment-21991</link>
		<dc:creator>Ilan</dc:creator>
		<pubDate>Wed, 22 Jul 2009 07:12:16 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2006/02/10/all-about-pixel-colors-part-3/#comment-21991</guid>
		<description>Hi Steve,

I have a gray image (values ranging from 0 to 5) and I want to color pixels which have certain value (say 1.2).


How can I do that?

Hope you can help.

Thanks,

Ilan</description>
		<content:encoded><![CDATA[<p>Hi Steve,</p>
<p>I have a gray image (values ranging from 0 to 5) and I want to color pixels which have certain value (say 1.2).</p>
<p>How can I do that?</p>
<p>Hope you can help.</p>
<p>Thanks,</p>
<p>Ilan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2006/02/10/all-about-pixel-colors-part-3/#comment-21085</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Fri, 19 Sep 2008 11:39:21 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2006/02/10/all-about-pixel-colors-part-3/#comment-21085</guid>
		<description>Greg&#8212;I don't understand your question.  Which pixels?  Highlight them how?  And how is highlighting related to getting the average?</description>
		<content:encoded><![CDATA[<p>Greg&mdash;I don&#8217;t understand your question.  Which pixels?  Highlight them how?  And how is highlighting related to getting the average?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg</title>
		<link>http://blogs.mathworks.com/steve/2006/02/10/all-about-pixel-colors-part-3/#comment-21083</link>
		<dc:creator>Greg</dc:creator>
		<pubDate>Fri, 19 Sep 2008 03:55:51 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2006/02/10/all-about-pixel-colors-part-3/#comment-21083</guid>
		<description>Now what if you wanted take that original imagesc(A) and highlight a few differnt pixels to get the average related to the original array [A]?  Thanks!</description>
		<content:encoded><![CDATA[<p>Now what if you wanted take that original imagesc(A) and highlight a few differnt pixels to get the average related to the original array [A]?  Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2006/02/10/all-about-pixel-colors-part-3/#comment-20604</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Wed, 16 Apr 2008 17:42:32 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2006/02/10/all-about-pixel-colors-part-3/#comment-20604</guid>
		<description>Alex&#8212;The default colormap length returned by &lt;tt&gt;hot&lt;/tt&gt; has only 64 colors, so it doesn't make sense to use it to display a 16-bit image with values that go from 0 to 1500.  When I try that, I get an image that's all white, which is what I would expect.  You might have better luck with something like this:

&lt;pre&gt;
% Display using the autoscaling syntax of imshow
imshow(I, [])

% Crop
[ROI,rect] = imcrop;
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Alex&mdash;The default colormap length returned by <tt>hot</tt> has only 64 colors, so it doesn&#8217;t make sense to use it to display a 16-bit image with values that go from 0 to 1500.  When I try that, I get an image that&#8217;s all white, which is what I would expect.  You might have better luck with something like this:</p>
<pre>
% Display using the autoscaling syntax of imshow
imshow(I, [])

% Crop
[ROI,rect] = imcrop;
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://blogs.mathworks.com/steve/2006/02/10/all-about-pixel-colors-part-3/#comment-20554</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Wed, 02 Apr 2008 19:27:35 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2006/02/10/all-about-pixel-colors-part-3/#comment-20554</guid>
		<description>Dear Steve,
Why am I having trouble using the imcrop function with a scaled image? Or, rather, why does the image not appear scaled anymore when I try to do imcrop on it? I have 16bit TIFF files with values that go from 0 to like 1500. I can use the imagesc function to display them just fine. But what I want to do then is to create regions of interest on such a scaled image. I was trying to use imcrop, but as soon as I put in [ROI,rect] = imcrop(I,hot); the scaled image that was on the screen is replaced by a solid black rectangle. Why is this, and how do I make it work how I want? 
Thank you if you can help!</description>
		<content:encoded><![CDATA[<p>Dear Steve,<br />
Why am I having trouble using the imcrop function with a scaled image? Or, rather, why does the image not appear scaled anymore when I try to do imcrop on it? I have 16bit TIFF files with values that go from 0 to like 1500. I can use the imagesc function to display them just fine. But what I want to do then is to create regions of interest on such a scaled image. I was trying to use imcrop, but as soon as I put in [ROI,rect] = imcrop(I,hot); the scaled image that was on the screen is replaced by a solid black rectangle. Why is this, and how do I make it work how I want?<br />
Thank you if you can help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2006/02/10/all-about-pixel-colors-part-3/#comment-18390</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Wed, 09 Jan 2008 16:23:08 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2006/02/10/all-about-pixel-colors-part-3/#comment-18390</guid>
		<description>Smita&#8212;When you converted your color image to gray, you discarded information.  You can't get it back.</description>
		<content:encoded><![CDATA[<p>Smita&mdash;When you converted your color image to gray, you discarded information.  You can&#8217;t get it back.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: smita</title>
		<link>http://blogs.mathworks.com/steve/2006/02/10/all-about-pixel-colors-part-3/#comment-18348</link>
		<dc:creator>smita</dc:creator>
		<pubDate>Wed, 09 Jan 2008 07:05:33 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2006/02/10/all-about-pixel-colors-part-3/#comment-18348</guid>
		<description>Hi,
  steve we are taking a color image converting it into gray image then wavelet transform is going to apply on that gray image.my question to you is can we recover original color image from that wavelet aplplied gray image.
       Thank you.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
  steve we are taking a color image converting it into gray image then wavelet transform is going to apply on that gray image.my question to you is can we recover original color image from that wavelet aplplied gray image.<br />
       Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2006/02/10/all-about-pixel-colors-part-3/#comment-11138</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Tue, 02 Oct 2007 23:22:09 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2006/02/10/all-about-pixel-colors-part-3/#comment-11138</guid>
		<description>Sridharan&#8212;When imshow displays a grayscale image, it installs a gray colormap in the figure.  In your second call to imshow, it replaced the figure's gray colormap with your label_color colormap.  That's why your gray image starts to look pink.  A figure can only have one colormap active at a time.  I suggest that you convert your images to truecolor in order to get the desired effect.</description>
		<content:encoded><![CDATA[<p>Sridharan&mdash;When imshow displays a grayscale image, it installs a gray colormap in the figure.  In your second call to imshow, it replaced the figure&#8217;s gray colormap with your label_color colormap.  That&#8217;s why your gray image starts to look pink.  A figure can only have one colormap active at a time.  I suggest that you convert your images to truecolor in order to get the desired effect.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sridharan</title>
		<link>http://blogs.mathworks.com/steve/2006/02/10/all-about-pixel-colors-part-3/#comment-10922</link>
		<dc:creator>Sridharan</dc:creator>
		<pubDate>Fri, 28 Sep 2007 02:00:28 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2006/02/10/all-about-pixel-colors-part-3/#comment-10922</guid>
		<description>Hi Steve,

Have a look at the following code. I have an image (apple.bmp) which is grayscale. I want to display an indexed image on top of it with a transparency value associated to it. But i get some weird pink areas on my image. Could you please let me know why this is happening??

label_color(1,:)=[0 0 0];
label_color(2,:)=[1 0 0];
label_color(3,:)=[0 1 0];
label_color(4,:)=[0 0 1];
label_color(5,:)=[1 1 0];
label_color(6,:)=[0 1 1];
label_color(7,:)=[1 0 1];

a1=imread('apple.bmp');

d_label=zeros(368,400);
d_label(100:200,100:200)=1;
mask=zeros(368,400);
index1=find(d_label~=0);
mask(index1)=.3;
figure,imshow(a1,[]),hold on
h=imshow(uint8(d_label),label_color);
set(h,'Alphadata',mask)</description>
		<content:encoded><![CDATA[<p>Hi Steve,</p>
<p>Have a look at the following code. I have an image (apple.bmp) which is grayscale. I want to display an indexed image on top of it with a transparency value associated to it. But i get some weird pink areas on my image. Could you please let me know why this is happening??</p>
<p>label_color(1,:)=[0 0 0];<br />
label_color(2,:)=[1 0 0];<br />
label_color(3,:)=[0 1 0];<br />
label_color(4,:)=[0 0 1];<br />
label_color(5,:)=[1 1 0];<br />
label_color(6,:)=[0 1 1];<br />
label_color(7,:)=[1 0 1];</p>
<p>a1=imread(&#8217;apple.bmp&#8217;);</p>
<p>d_label=zeros(368,400);<br />
d_label(100:200,100:200)=1;<br />
mask=zeros(368,400);<br />
index1=find(d_label~=0);<br />
mask(index1)=.3;<br />
figure,imshow(a1,[]),hold on<br />
h=imshow(uint8(d_label),label_color);<br />
set(h,&#8217;Alphadata&#8217;,mask)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
