<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: All about pixel colors: Scaled indexed images</title>
	<atom:link href="http://blogs.mathworks.com/steve/2006/02/10/all-about-pixel-colors-part-3/feed/" rel="self" type="application/rss+xml" />
	<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 The MathWorks and coauthored Digital Image Processing Using MATLAB. He writes here about image processing concepts, algorithm implementations, and MATLAB.</description>
	<lastBuildDate>Wed, 01 Feb 2012 13:58:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2006/02/10/all-about-pixel-colors-part-3/#comment-24693</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Mon, 28 Nov 2011 17:06:22 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/?p=33#comment-24693</guid>
		<description>Stephan&#8212;No, there&#039;s nothing like that. I would love to see a more general data-to-color mapping capability available in MATLAB for image display. I&#039;ll mention it to the graphics team.</description>
		<content:encoded><![CDATA[<p>Stephan&mdash;No, there&#8217;s nothing like that. I would love to see a more general data-to-color mapping capability available in MATLAB for image display. I&#8217;ll mention it to the graphics team.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephan</title>
		<link>http://blogs.mathworks.com/steve/2006/02/10/all-about-pixel-colors-part-3/#comment-24674</link>
		<dc:creator>Stephan</dc:creator>
		<pubDate>Thu, 24 Nov 2011 13:24:45 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/?p=33#comment-24674</guid>
		<description>Hi Steve,

when using imagesc, the data is mapped LINEARLY to the colors of the colormap. Is there a way to change the mapping function to e.g. a logarithmic one? 
(I mean, alternatively I could modify the data and then also modify the tick labels on the colorbar accordingly... but changing the mapping function would be much more elegant.)

Thanks,
Stephan.</description>
		<content:encoded><![CDATA[<p>Hi Steve,</p>
<p>when using imagesc, the data is mapped LINEARLY to the colors of the colormap. Is there a way to change the mapping function to e.g. a logarithmic one?<br />
(I mean, alternatively I could modify the data and then also modify the tick labels on the colorbar accordingly&#8230; but changing the mapping function would be much more elegant.)</p>
<p>Thanks,<br />
Stephan.</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-23828</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Wed, 05 Jan 2011 16:36:34 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/?p=33#comment-23828</guid>
		<description>Marco&#8212;I think that imagesc just ignores nonfinite values when computing the range.</description>
		<content:encoded><![CDATA[<p>Marco&mdash;I think that imagesc just ignores nonfinite values when computing the range.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marco peralla</title>
		<link>http://blogs.mathworks.com/steve/2006/02/10/all-about-pixel-colors-part-3/#comment-23786</link>
		<dc:creator>marco peralla</dc:creator>
		<pubDate>Thu, 16 Dec 2010 15:16:49 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/?p=33#comment-23786</guid>
		<description>Hi

I wonder how these linear re-scalings work in the case that you have -Inf for example. More precisly when i plot log intensity map of a magnitude spectrogram of a sound (so that the components with zero intensity turn to -Inf) when i do imagesc it shows an acceptable map however if I tend to save that log-intensity matrix to a image or ascii file my self i fail, i need to know how imagesc copes with these situations. can you help me with that ?

thanks</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>I wonder how these linear re-scalings work in the case that you have -Inf for example. More precisly when i plot log intensity map of a magnitude spectrogram of a sound (so that the components with zero intensity turn to -Inf) when i do imagesc it shows an acceptable map however if I tend to save that log-intensity matrix to a image or ascii file my self i fail, i need to know how imagesc copes with these situations. can you help me with that ?</p>
<p>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-22001</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Fri, 24 Jul 2009 00:48:37 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/?p=33#comment-22001</guid>
		<description>Ilan&#8212;Try my &lt;a href=&quot;http://www.mathworks.com/matlabcentral/fileexchange/10502&quot; rel=&quot;nofollow&quot;&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 isPermaLink="false">http://blogs.mathworks.com/steve/?p=33#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 isPermaLink="false">http://blogs.mathworks.com/steve/?p=33#comment-21085</guid>
		<description>Greg&#8212;I don&#039;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 isPermaLink="false">http://blogs.mathworks.com/steve/?p=33#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 isPermaLink="false">http://blogs.mathworks.com/steve/?p=33#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&#039;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&#039;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 isPermaLink="false">http://blogs.mathworks.com/steve/?p=33#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>
</channel>
</rss>

