<?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: Image overlay using transparency</title>
	<atom:link href="http://blogs.mathworks.com/steve/2009/02/18/image-overlay-using-transparency/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.mathworks.com/steve/2009/02/18/image-overlay-using-transparency/</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: Alex</title>
		<link>http://blogs.mathworks.com/steve/2009/02/18/image-overlay-using-transparency/#comment-24793</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Fri, 13 Jan 2012 05:05:11 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2009/02/18/image-overlay-using-transparency/#comment-24793</guid>
		<description>Hey, never mind! I just needed to try one more thing, I did, and it works like charm! Matlab is awesome! Thanks for you blog!! It was the key!</description>
		<content:encoded><![CDATA[<p>Hey, never mind! I just needed to try one more thing, I did, and it works like charm! Matlab is awesome! Thanks for you blog!! It was the key!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://blogs.mathworks.com/steve/2009/02/18/image-overlay-using-transparency/#comment-24791</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Fri, 13 Jan 2012 02:26:12 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2009/02/18/image-overlay-using-transparency/#comment-24791</guid>
		<description>Not sure if to say Dear Steve because when I was reading all those posts Dear Steve, Steve, ..... the Bruce Almighty movie came to mind. =)

I have a question and I am not sure if even possible (although I think in Matlab everything is possible). I am working in augmented reality and I am trying to exactly what you explained here vey well. However, I noticed you use hold on and off and lose the handle of the first image. In augmented reality you have a &quot;video&quot; on real time of your environment (which would be the first image in your problem here but changing every few miliseconds) and basically I want to overlay icons (which would be your second image here in your problem) on real time and at the same time those icons should be using an AlphaData per pixel of 0.5 and they don&#039;t change or update as the video does. They should stay  there. How I am getting the video? I have a webcam and I am using a timer function to display at a given rate.  To update the image (I am using image not imshow), I use the property CData. When I run the program it doesn&#039;t show the icon I am intending to see on top of the time-variant picture/video. For the icon I created the object, got the handle, and then update inside the timer right after I update the video. I have been trying to find a way around to make it work but I was actually wondering if it was even possible because I did a search in google and nobody have tried or commented about this topic. Am I in the right track at least?

Entertaining blog. Thanks!</description>
		<content:encoded><![CDATA[<p>Not sure if to say Dear Steve because when I was reading all those posts Dear Steve, Steve, &#8230;.. the Bruce Almighty movie came to mind. =)</p>
<p>I have a question and I am not sure if even possible (although I think in Matlab everything is possible). I am working in augmented reality and I am trying to exactly what you explained here vey well. However, I noticed you use hold on and off and lose the handle of the first image. In augmented reality you have a &#8220;video&#8221; on real time of your environment (which would be the first image in your problem here but changing every few miliseconds) and basically I want to overlay icons (which would be your second image here in your problem) on real time and at the same time those icons should be using an AlphaData per pixel of 0.5 and they don&#8217;t change or update as the video does. They should stay  there. How I am getting the video? I have a webcam and I am using a timer function to display at a given rate.  To update the image (I am using image not imshow), I use the property CData. When I run the program it doesn&#8217;t show the icon I am intending to see on top of the time-variant picture/video. For the icon I created the object, got the handle, and then update inside the timer right after I update the video. I have been trying to find a way around to make it work but I was actually wondering if it was even possible because I did a search in google and nobody have tried or commented about this topic. Am I in the right track at least?</p>
<p>Entertaining blog. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Eddins</title>
		<link>http://blogs.mathworks.com/steve/2009/02/18/image-overlay-using-transparency/#comment-24766</link>
		<dc:creator>Steve Eddins</dc:creator>
		<pubDate>Thu, 29 Dec 2011 13:21:37 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2009/02/18/image-overlay-using-transparency/#comment-24766</guid>
		<description>Matteo&#8212;Handle Graphics image objects don&#039;t display unless the axes is in a 2-D view. Try instead texture-mapping the data onto a flat surface object.</description>
		<content:encoded><![CDATA[<p>Matteo&mdash;Handle Graphics image objects don&#8217;t display unless the axes is in a 2-D view. Try instead texture-mapping the data onto a flat surface object.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matteo</title>
		<link>http://blogs.mathworks.com/steve/2009/02/18/image-overlay-using-transparency/#comment-24755</link>
		<dc:creator>Matteo</dc:creator>
		<pubDate>Wed, 21 Dec 2011 21:29:11 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2009/02/18/image-overlay-using-transparency/#comment-24755</guid>
		<description>Hi Steve

Is there any way to do this on a surf plot?
I am trying to push to 3D the good results I get with this FEX function
http://www.mathworks.com/matlabcentral/fileexchange/14157-shaded-pseudo-color

I tried the code below but I get same result with last three lines commented off/on 
Thank you, and happy holidays.

Matteo


black=cat(3,zeros(size(data)),zeros(size(data)),zeros(size(data)));
surf(data,&#039;FaceColor&#039;,&#039;interp&#039;,&#039;EdgeColor&#039;,&#039;none&#039;);
colormap(jet);colorbar;
set(gca,&#039;YDir&#039;,&#039;reverse&#039;);
view(-18,61);
material shiny;
axis tight
axis equal
axis off
hold on
kk=imagesc(black);
hold off
set(kk, &#039;AlphaData&#039;, data_slope);
</description>
		<content:encoded><![CDATA[<p>Hi Steve</p>
<p>Is there any way to do this on a surf plot?<br />
I am trying to push to 3D the good results I get with this FEX function<br />
<a href="http://www.mathworks.com/matlabcentral/fileexchange/14157-shaded-pseudo-color" rel="nofollow">http://www.mathworks.com/matlabcentral/fileexchange/14157-shaded-pseudo-color</a></p>
<p>I tried the code below but I get same result with last three lines commented off/on<br />
Thank you, and happy holidays.</p>
<p>Matteo</p>
<p>black=cat(3,zeros(size(data)),zeros(size(data)),zeros(size(data)));<br />
surf(data,&#8217;FaceColor&#8217;,'interp&#8217;,'EdgeColor&#8217;,'none&#8217;);<br />
colormap(jet);colorbar;<br />
set(gca,&#8217;YDir&#8217;,'reverse&#8217;);<br />
view(-18,61);<br />
material shiny;<br />
axis tight<br />
axis equal<br />
axis off<br />
hold on<br />
kk=imagesc(black);<br />
hold off<br />
set(kk, &#8216;AlphaData&#8217;, data_slope);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Divya</title>
		<link>http://blogs.mathworks.com/steve/2009/02/18/image-overlay-using-transparency/#comment-24582</link>
		<dc:creator>Divya</dc:creator>
		<pubDate>Sat, 29 Oct 2011 11:53:47 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2009/02/18/image-overlay-using-transparency/#comment-24582</guid>
		<description>sir
actually m doing sign language recognition.m using two gloves for that.one is red and the other is blue.i made seperate programs to segment red hand and blue hand.but when i combine the codes in one program,i hold one segmented image and then show the second one,the second one superimposes on the first one.i am not able to show both both the hands
please help me out how to show both hands in one image</description>
		<content:encoded><![CDATA[<p>sir<br />
actually m doing sign language recognition.m using two gloves for that.one is red and the other is blue.i made seperate programs to segment red hand and blue hand.but when i combine the codes in one program,i hold one segmented image and then show the second one,the second one superimposes on the first one.i am not able to show both both the hands<br />
please help me out how to show both hands in one image</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2009/02/18/image-overlay-using-transparency/#comment-24578</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Wed, 26 Oct 2011 16:36:42 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2009/02/18/image-overlay-using-transparency/#comment-24578</guid>
		<description>Divya&#8212;What specific code are you using?</description>
		<content:encoded><![CDATA[<p>Divya&mdash;What specific code are you using?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Divya</title>
		<link>http://blogs.mathworks.com/steve/2009/02/18/image-overlay-using-transparency/#comment-24569</link>
		<dc:creator>Divya</dc:creator>
		<pubDate>Sun, 23 Oct 2011 07:59:01 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2009/02/18/image-overlay-using-transparency/#comment-24569</guid>
		<description>hello steve
i liked your program vry much.i have seen your other programs also.i always like your work.
in the firs example u superimposed a grayscale image onto a rgb image. i want to superimpose rgb on an rgb image .if i run the same code,its not working.Could you please help me in this.</description>
		<content:encoded><![CDATA[<p>hello steve<br />
i liked your program vry much.i have seen your other programs also.i always like your work.<br />
in the firs example u superimposed a grayscale image onto a rgb image. i want to superimpose rgb on an rgb image .if i run the same code,its not working.Could you please help me in this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2009/02/18/image-overlay-using-transparency/#comment-24496</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Wed, 21 Sep 2011 17:24:44 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2009/02/18/image-overlay-using-transparency/#comment-24496</guid>
		<description>Nishant&#8212;That&#039;s because the image you downloaded from this web page is in RGB truecolor format rather than grayscale. Convert it to grayscale first.</description>
		<content:encoded><![CDATA[<p>Nishant&mdash;That&#8217;s because the image you downloaded from this web page is in RGB truecolor format rather than grayscale. Convert it to grayscale first.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nishant</title>
		<link>http://blogs.mathworks.com/steve/2009/02/18/image-overlay-using-transparency/#comment-24490</link>
		<dc:creator>Nishant</dc:creator>
		<pubDate>Sun, 18 Sep 2011 15:30:25 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2009/02/18/image-overlay-using-transparency/#comment-24490</guid>
		<description>Hi steve,
I have been reading the above post bt I am having the problem that my green matrix is N-by-M-9, for 
green = cat(3, zeros(size(E)), ones(size(E)), zeros(size(E)));

How do i solve this error???
thanx in anticipation</description>
		<content:encoded><![CDATA[<p>Hi steve,<br />
I have been reading the above post bt I am having the problem that my green matrix is N-by-M-9, for<br />
green = cat(3, zeros(size(E)), ones(size(E)), zeros(size(E)));</p>
<p>How do i solve this error???<br />
thanx in anticipation</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2009/02/18/image-overlay-using-transparency/#comment-24245</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Fri, 27 May 2011 12:17:54 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2009/02/18/image-overlay-using-transparency/#comment-24245</guid>
		<description>Waleed&#8212;You may have better luck doing the composition calculation directly instead of letting the MATLAB graphics system do it. That will give you direct control over the size. Do a search for &quot;image composition.&quot; I&#039;ll add this to my list of potential blog topics.</description>
		<content:encoded><![CDATA[<p>Waleed&mdash;You may have better luck doing the composition calculation directly instead of letting the MATLAB graphics system do it. That will give you direct control over the size. Do a search for &#8220;image composition.&#8221; I&#8217;ll add this to my list of potential blog topics.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

