<?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: Image overlay using transparency</title>
	<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 &#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, 22 Nov 2009 23:50:49 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2009/02/18/image-overlay-using-transparency/#comment-22344</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Fri, 13 Nov 2009 18:21:24 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2009/02/18/image-overlay-using-transparency/#comment-22344</guid>
		<description>Amina&#8212;I don't understand. Can you be more specific?  Do you mean superimpose plotted 2-D graphics over an image?</description>
		<content:encoded><![CDATA[<p>Amina&mdash;I don&#8217;t understand. Can you be more specific?  Do you mean superimpose plotted 2-D graphics over an image?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: amina</title>
		<link>http://blogs.mathworks.com/steve/2009/02/18/image-overlay-using-transparency/#comment-22343</link>
		<dc:creator>amina</dc:creator>
		<pubDate>Fri, 13 Nov 2009 17:21:22 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2009/02/18/image-overlay-using-transparency/#comment-22343</guid>
		<description>Hello!
i want to ask you that how can I add a small figure on a particular pixel(as its center) of another large image?


Thanks!</description>
		<content:encoded><![CDATA[<p>Hello!<br />
i want to ask you that how can I add a small figure on a particular pixel(as its center) of another large image?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2009/02/18/image-overlay-using-transparency/#comment-22203</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Thu, 08 Oct 2009 12:32:35 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2009/02/18/image-overlay-using-transparency/#comment-22203</guid>
		<description>Kai&#8212;You can control the size of the figure explicity by setting the figure properties.  You can also control the size of the axes object in which the image is drawn by setting the axes properties.  See the MATLAB Graphics doc for information about the 'Units' and 'Position' properties for figure and axes objects.</description>
		<content:encoded><![CDATA[<p>Kai&mdash;You can control the size of the figure explicity by setting the figure properties.  You can also control the size of the axes object in which the image is drawn by setting the axes properties.  See the MATLAB Graphics doc for information about the &#8216;Units&#8217; and &#8216;Position&#8217; properties for figure and axes objects.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kai</title>
		<link>http://blogs.mathworks.com/steve/2009/02/18/image-overlay-using-transparency/#comment-22202</link>
		<dc:creator>Kai</dc:creator>
		<pubDate>Thu, 08 Oct 2009 12:29:36 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2009/02/18/image-overlay-using-transparency/#comment-22202</guid>
		<description>Hallo Steve,

thanks for your help. The problem was, that my images are imported as rgb colored pics. After converting with rgb2gray, the program run perfectly.

Another question. If I use print to save the current figure, the image will be saved bigger than I need. At the moment I reload the picture cut it and save it again. How can I replace this second step. Can I set a size for my figure. Or is there an option to save the overlayed axes without margin.

Thanks for help
Kai</description>
		<content:encoded><![CDATA[<p>Hallo Steve,</p>
<p>thanks for your help. The problem was, that my images are imported as rgb colored pics. After converting with rgb2gray, the program run perfectly.</p>
<p>Another question. If I use print to save the current figure, the image will be saved bigger than I need. At the moment I reload the picture cut it and save it again. How can I replace this second step. Can I set a size for my figure. Or is there an option to save the overlayed axes without margin.</p>
<p>Thanks for help<br />
Kai</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2009/02/18/image-overlay-using-transparency/#comment-22175</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Mon, 05 Oct 2009 14:44:14 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2009/02/18/image-overlay-using-transparency/#comment-22175</guid>
		<description>Kai&#8212;Use &lt;tt&gt;dbstop if error&lt;/tt&gt; to get MATLAB to stop when the error occurs.  Then examine the variables in your code to see what might be the problem.  For example, look at the size of the variable &lt;tt&gt;green&lt;/tt&gt; in the call to &lt;tt&gt;imshow&lt;/tt&gt;.

Also, I encourage you to use the "Get the MATLAB code" link at the bottom of the blog post to make sure you are using the same code that I posted.

Regarding saving a figure without it appearing on screen&#8212;create an invisible figure:

&lt;pre&gt;
fig = figure('Visible', 'off')
&lt;/pre&gt;

Then plot into the figure and use &lt;tt&gt;print -dpng&lt;/tt&gt; to print the figure.</description>
		<content:encoded><![CDATA[<p>Kai&mdash;Use <tt>dbstop if error</tt> to get MATLAB to stop when the error occurs.  Then examine the variables in your code to see what might be the problem.  For example, look at the size of the variable <tt>green</tt> in the call to <tt>imshow</tt>.</p>
<p>Also, I encourage you to use the &#8220;Get the MATLAB code&#8221; link at the bottom of the blog post to make sure you are using the same code that I posted.</p>
<p>Regarding saving a figure without it appearing on screen&mdash;create an invisible figure:</p>
<pre>
fig = figure('Visible', 'off')
</pre>
<p>Then plot into the figure and use <tt>print -dpng</tt> to print the figure.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kai</title>
		<link>http://blogs.mathworks.com/steve/2009/02/18/image-overlay-using-transparency/#comment-22164</link>
		<dc:creator>Kai</dc:creator>
		<pubDate>Wed, 30 Sep 2009 09:01:34 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2009/02/18/image-overlay-using-transparency/#comment-22164</guid>
		<description>Hello Steve,

I've got another problem concerning the first example.
After processing the line "set(h, 'AlphaData', alpha_data);" my figure shows only the a few rows of the image. The Alpha_data and the image have the same dimension. This problem will also appear, if I run the script as shown in this article.
Is there an opportunity to overlay some picture, add text and save the "figure" as png or jpg without displaying it on the screen?</description>
		<content:encoded><![CDATA[<p>Hello Steve,</p>
<p>I&#8217;ve got another problem concerning the first example.<br />
After processing the line &#8220;set(h, &#8216;AlphaData&#8217;, alpha_data);&#8221; my figure shows only the a few rows of the image. The Alpha_data and the image have the same dimension. This problem will also appear, if I run the script as shown in this article.<br />
Is there an opportunity to overlay some picture, add text and save the &#8220;figure&#8221; as png or jpg without displaying it on the screen?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kai</title>
		<link>http://blogs.mathworks.com/steve/2009/02/18/image-overlay-using-transparency/#comment-22149</link>
		<dc:creator>Kai</dc:creator>
		<pubDate>Tue, 22 Sep 2009 14:08:45 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2009/02/18/image-overlay-using-transparency/#comment-22149</guid>
		<description>I tried to use your second example to overlay a picture with a transparent box. But I get an unknow mistake:"??? Error using ==&#62; imageDisplayParseInputs&#62;validateCData at 249
Unsupported dimension

Error in ==&#62; imageDisplayParseInputs at 202
common_args.CData = validateCData(common_args.CData,image_type);

Error in ==&#62; imshow at 173
  [common_args,specific_args] = ...

Error in ==&#62; plot at 84
h = imshow(green);" What is the Problem. I use Matlab 7.5.0</description>
		<content:encoded><![CDATA[<p>I tried to use your second example to overlay a picture with a transparent box. But I get an unknow mistake:&#8221;??? Error using ==&gt; imageDisplayParseInputs&gt;validateCData at 249<br />
Unsupported dimension</p>
<p>Error in ==&gt; imageDisplayParseInputs at 202<br />
common_args.CData = validateCData(common_args.CData,image_type);</p>
<p>Error in ==&gt; imshow at 173<br />
  [common_args,specific_args] = &#8230;</p>
<p>Error in ==&gt; plot at 84<br />
h = imshow(green);&#8221; What is the Problem. I use Matlab 7.5.0</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2009/02/18/image-overlay-using-transparency/#comment-22013</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Mon, 27 Jul 2009 13:53:03 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2009/02/18/image-overlay-using-transparency/#comment-22013</guid>
		<description>Jay&#8212;Set the figure to have the desired size and units, set the figure's PaperPositionMode to 'auto', and then use the -r switch with print.</description>
		<content:encoded><![CDATA[<p>Jay&mdash;Set the figure to have the desired size and units, set the figure&#8217;s PaperPositionMode to &#8216;auto&#8217;, and then use the -r switch with print.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jay</title>
		<link>http://blogs.mathworks.com/steve/2009/02/18/image-overlay-using-transparency/#comment-22008</link>
		<dc:creator>Jay</dc:creator>
		<pubDate>Sun, 26 Jul 2009 18:30:03 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2009/02/18/image-overlay-using-transparency/#comment-22008</guid>
		<description>I am trying to do something similar to this, but I want to overlay a plot onto the image. When I try to save it with the print command, I get a new image that is a different resolution. Do you know of a way to print to a specified resolution (say 1600x1200 pixels)?
Thanks</description>
		<content:encoded><![CDATA[<p>I am trying to do something similar to this, but I want to overlay a plot onto the image. When I try to save it with the print command, I get a new image that is a different resolution. Do you know of a way to print to a specified resolution (say 1600&#215;1200 pixels)?<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2009/02/18/image-overlay-using-transparency/#comment-21827</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Thu, 04 Jun 2009 01:29:29 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2009/02/18/image-overlay-using-transparency/#comment-21827</guid>
		<description>Zhenghui&#8212;Click on the "Get the MATLAB code" link at the bottom of the post.</description>
		<content:encoded><![CDATA[<p>Zhenghui&mdash;Click on the &#8220;Get the MATLAB code&#8221; link at the bottom of the post.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
