<?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: Truecolor and indexed images</title>
	<atom:link href="http://blogs.mathworks.com/steve/2006/02/03/all-about-pixel-colors-part-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.mathworks.com/steve/2006/02/03/all-about-pixel-colors-part-2/</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>Sat, 11 Feb 2012 18:27:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Shashidhara</title>
		<link>http://blogs.mathworks.com/steve/2006/02/03/all-about-pixel-colors-part-2/#comment-23302</link>
		<dc:creator>Shashidhara</dc:creator>
		<pubDate>Wed, 21 Jul 2010 08:06:34 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/?p=32#comment-23302</guid>
		<description>Dear Steve,

Thanks for your inputs. Your comments really helped me solve the problem. I typecasted &#039;y&#039; to unit8 and it works fine.

Thanks again,

Regards
Shashi</description>
		<content:encoded><![CDATA[<p>Dear Steve,</p>
<p>Thanks for your inputs. Your comments really helped me solve the problem. I typecasted &#8216;y&#8217; to unit8 and it works fine.</p>
<p>Thanks again,</p>
<p>Regards<br />
Shashi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2006/02/03/all-about-pixel-colors-part-2/#comment-23299</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Tue, 20 Jul 2010 11:53:27 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/?p=32#comment-23299</guid>
		<description>Yuv&#8212;Please contact &lt;a href=&quot;http://www.mathworks.com/support/contact_us/index.html&quot; rel=&quot;nofollow&quot;&gt;technical support&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>Yuv&mdash;Please contact <a href="http://www.mathworks.com/support/contact_us/index.html" rel="nofollow">technical support</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yuv Sharma</title>
		<link>http://blogs.mathworks.com/steve/2006/02/03/all-about-pixel-colors-part-2/#comment-23297</link>
		<dc:creator>Yuv Sharma</dc:creator>
		<pubDate>Tue, 20 Jul 2010 10:15:13 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/?p=32#comment-23297</guid>
		<description>Dear steve,
I am quite new to matlab, and have this particular problem or question. Can i take a grayscale image and do some calculations on the cell values, say i want to increase the value of cells which has a value below 50 (say) by 10. After doing such calculations i found that although the resulting matrix showed the calculated results but whenever i used imwrite to write it to a file or use imshow, it either shows a totally black or totally white image. I feel I need to convert the resulting matrix to grayscale, I tried mat2gray and some other commands available in the toolbox but with no use. Hope you can help me.</description>
		<content:encoded><![CDATA[<p>Dear steve,<br />
I am quite new to matlab, and have this particular problem or question. Can i take a grayscale image and do some calculations on the cell values, say i want to increase the value of cells which has a value below 50 (say) by 10. After doing such calculations i found that although the resulting matrix showed the calculated results but whenever i used imwrite to write it to a file or use imshow, it either shows a totally black or totally white image. I feel I need to convert the resulting matrix to grayscale, I tried mat2gray and some other commands available in the toolbox but with no use. Hope you can help me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2006/02/03/all-about-pixel-colors-part-2/#comment-23293</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Mon, 19 Jul 2010 15:01:12 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/?p=32#comment-23293</guid>
		<description>Shashidhara&#8212;You&#039;re using an indexed-image syntax to read the image, and then the rest of the code is assuming that the image is in truecolor format.  Also, you are initializing &lt;tt&gt;y&lt;/tt&gt; as a double-precision array but then you&#039;re assigning uint8 values into it, so you&#039;re going to have a dynamic range scaling problem. I&#039;d like to suggest that you take a look at the &lt;a href=&quot;http://www.mathworks.com/access/helpdesk/help/toolbox/images/f14-19056.html&quot; rel=&quot;nofollow&quot;&gt;Introduction&lt;/a&gt; section for the Image Processing Toolbox User Guide to get information about image type and data type conventions.</description>
		<content:encoded><![CDATA[<p>Shashidhara&mdash;You&#8217;re using an indexed-image syntax to read the image, and then the rest of the code is assuming that the image is in truecolor format.  Also, you are initializing <tt>y</tt> as a double-precision array but then you&#8217;re assigning uint8 values into it, so you&#8217;re going to have a dynamic range scaling problem. I&#8217;d like to suggest that you take a look at the <a href="http://www.mathworks.com/access/helpdesk/help/toolbox/images/f14-19056.html" rel="nofollow">Introduction</a> section for the Image Processing Toolbox User Guide to get information about image type and data type conventions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shashidhara</title>
		<link>http://blogs.mathworks.com/steve/2006/02/03/all-about-pixel-colors-part-2/#comment-23278</link>
		<dc:creator>Shashidhara</dc:creator>
		<pubDate>Thu, 15 Jul 2010 04:58:51 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/?p=32#comment-23278</guid>
		<description>Dear Steve,
Thanks for kind reply.
Here is the part of the code that I am working with;

&lt;pre&gt;

[m,map]=imread(&#039;xyz.bmp&#039;);
x=m(:,:,1);
y=zeros(size(m));
y(:,:,1)=x;
figure(1);
imwrite(y,&#039;xyz_RED.bmp&#039;,&#039;bmp&#039;);

&lt;/pre&gt;

I would like to display and write an image with varying only in &#039;black-red&#039; space. But I get blank image filled with red; i.e., image information that is available if I do 
&lt;pre&gt;
imwrite(x,&#039;xyz_red_gs.bmp&#039;,&#039;bmp&#039;);
&lt;/pre&gt;
is not seen (or lost). Could you please help me how I can solve this.
Thanks again,

Shashi</description>
		<content:encoded><![CDATA[<p>Dear Steve,<br />
Thanks for kind reply.<br />
Here is the part of the code that I am working with;</p>
<pre>

[m,map]=imread('xyz.bmp');
x=m(:,:,1);
y=zeros(size(m));
y(:,:,1)=x;
figure(1);
imwrite(y,'xyz_RED.bmp','bmp');
</pre>
<p>I would like to display and write an image with varying only in &#8216;black-red&#8217; space. But I get blank image filled with red; i.e., image information that is available if I do </p>
<pre>
imwrite(x,'xyz_red_gs.bmp','bmp');
</pre>
<p>is not seen (or lost). Could you please help me how I can solve this.<br />
Thanks again,</p>
<p>Shashi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2006/02/03/all-about-pixel-colors-part-2/#comment-23276</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Wed, 14 Jul 2010 11:38:27 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/?p=32#comment-23276</guid>
		<description>Shashidhara&#8212;What do you mean by &quot;this doesn&#039;t work&quot;? What exactly did you try, what was the result, and why was the result not satisfactory?</description>
		<content:encoded><![CDATA[<p>Shashidhara&mdash;What do you mean by &#8220;this doesn&#8217;t work&#8221;? What exactly did you try, what was the result, and why was the result not satisfactory?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shashidhara</title>
		<link>http://blogs.mathworks.com/steve/2006/02/03/all-about-pixel-colors-part-2/#comment-23275</link>
		<dc:creator>Shashidhara</dc:creator>
		<pubDate>Wed, 14 Jul 2010 06:36:06 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/?p=32#comment-23275</guid>
		<description>Dear Sir,

I would like to display RGB planes as separate images with shades of itself. i.e, I break RGB into R,G, and B planes of 8 bit vectors, and now would like to diplay them as a variation of Black to Red, Black to Green, and Black to Blue. Could you please guide me how I can achieve this in MATLAB.

I have tried to take only one plane and cat them with others planes having &#039;zeros&#039;, but this doesn&#039;t work.

Thank you,

Shashi</description>
		<content:encoded><![CDATA[<p>Dear Sir,</p>
<p>I would like to display RGB planes as separate images with shades of itself. i.e, I break RGB into R,G, and B planes of 8 bit vectors, and now would like to diplay them as a variation of Black to Red, Black to Green, and Black to Blue. Could you please guide me how I can achieve this in MATLAB.</p>
<p>I have tried to take only one plane and cat them with others planes having &#8216;zeros&#8217;, but this doesn&#8217;t work.</p>
<p>Thank you,</p>
<p>Shashi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2006/02/03/all-about-pixel-colors-part-2/#comment-21759</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Wed, 13 May 2009 23:19:29 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/?p=32#comment-21759</guid>
		<description>Imen&#8212;Use &lt;tt&gt;makecform&lt;/tt&gt; and &lt;tt&gt;applycform&lt;/tt&gt; for converting between RGB and LAB.  I don&#039;t understand your question about &lt;tt&gt;regionprops&lt;/tt&gt;; that function is for computing geometric measurements of image regions.</description>
		<content:encoded><![CDATA[<p>Imen&mdash;Use <tt>makecform</tt> and <tt>applycform</tt> for converting between RGB and LAB.  I don&#8217;t understand your question about <tt>regionprops</tt>; that function is for computing geometric measurements of image regions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: imen</title>
		<link>http://blogs.mathworks.com/steve/2006/02/03/all-about-pixel-colors-part-2/#comment-21758</link>
		<dc:creator>imen</dc:creator>
		<pubDate>Wed, 13 May 2009 22:11:09 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/?p=32#comment-21758</guid>
		<description>hi my problem is how to create a function to convert an image RGB to XYZ then XYZ to LAB and make it &quot;executable&quot; it means i can run it and see the result
and i have another problem ich is how to create a nother function for searching an image using the commande regionprops????
i hope i will get an answer from you
</description>
		<content:encoded><![CDATA[<p>hi my problem is how to create a function to convert an image RGB to XYZ then XYZ to LAB and make it &#8220;executable&#8221; it means i can run it and see the result<br />
and i have another problem ich is how to create a nother function for searching an image using the commande regionprops????<br />
i hope i will get an answer from you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2006/02/03/all-about-pixel-colors-part-2/#comment-21163</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Wed, 15 Oct 2008 19:53:06 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/?p=32#comment-21163</guid>
		<description>Anurag&#8212;Here&#039;s a sample:

&lt;pre&gt;
RGB = imread(&#039;peppers.png&#039;);
imshow(RGB)
I = rgb2gray(RGB);
figure, imshow(I)
imwrite(I, peppers_gray.png&#039;)
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Anurag&mdash;Here&#8217;s a sample:</p>
<pre>
RGB = imread('peppers.png');
imshow(RGB)
I = rgb2gray(RGB);
figure, imshow(I)
imwrite(I, peppers_gray.png')
</pre>
]]></content:encoded>
	</item>
</channel>
</rss>

