<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265322</link>
    <title>MATLAB Central Newsreader - Basic Image Processing</title>
    <description>Feed for thread: Basic Image Processing</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Mon, 09 Nov 2009 02:37:01 -0500</pubDate>
      <title>Basic Image Processing</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265322#693121</link>
      <author>Joe Frank</author>
      <description>I have two images.. im1 and im2&lt;br&gt;
&lt;br&gt;
im1 is 1200x1 matrix&lt;br&gt;
im2 is 1450x1 matrix&lt;br&gt;
&lt;br&gt;
I want to add im1 and im2 for further calculation. How do I do it?</description>
    </item>
    <item>
      <pubDate>Mon, 09 Nov 2009 02:45:23 -0500</pubDate>
      <title>Re: Basic Image Processing</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265322#693122</link>
      <author>jonny</author>
      <description>On Nov 8, 9:37&#160;pm, &quot;Joe Frank&quot; &amp;lt;sas...@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; I have two images.. im1 and im2&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; im1 is 1200x1 matrix&lt;br&gt;
&amp;gt; im2 is 1450x1 matrix&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I want to add im1 and im2 for further calculation. How do I do it?&lt;br&gt;
&lt;br&gt;
you need to interpolate one over the range of the other. I would&lt;br&gt;
interpolate the 1450 over the 1200 range.</description>
    </item>
    <item>
      <pubDate>Mon, 09 Nov 2009 03:17:03 -0500</pubDate>
      <title>Re: Basic Image Processing</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265322#693127</link>
      <author>Joe Frank</author>
      <description>jonny &amp;lt;jonnazemi@gmail.com&amp;gt; wrote in message &amp;lt;e0176e1c-3cfb-4a59-81ed-6ede6dc961d7@j19g2000vbp.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; On Nov 8, 9:37?pm, &quot;Joe Frank&quot; &amp;lt;sas...@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; I have two images.. im1 and im2&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; im1 is 1200x1 matrix&lt;br&gt;
&amp;gt; &amp;gt; im2 is 1450x1 matrix&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; I want to add im1 and im2 for further calculation. How do I do it?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; you need to interpolate one over the range of the other. I would&lt;br&gt;
&amp;gt; interpolate the 1450 over the 1200 range.&lt;br&gt;
&lt;br&gt;
How do I interpolate them?</description>
    </item>
    <item>
      <pubDate>Mon, 09 Nov 2009 16:08:02 -0500</pubDate>
      <title>Re: Basic Image Processing</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265322#693251</link>
      <author>Novae </author>
      <description>Hi Joe&lt;br&gt;
&lt;br&gt;
im1 and im2 look like vectors (nx1 matrices...)&lt;br&gt;
Anyway, assuming that you have this images:&lt;br&gt;
&lt;br&gt;
im1 is 200x200 matrix&lt;br&gt;
im2 is 300x300 matrix&lt;br&gt;
&lt;br&gt;
You can only add 2 images if they are of the same size. So re-size the smaller one to a 300x300 matrix. This way you will avoid information loss since you can't create completely new from existing one. For this use:&lt;br&gt;
&lt;br&gt;
im2=imresize(im2, [300, 300]);&lt;br&gt;
&lt;br&gt;
There are several algorithms for resizing. Check the options on imresize help.&lt;br&gt;
&lt;br&gt;
Now you should have similar images and you can add them (if you have the image processing toolbox):&lt;br&gt;
&lt;br&gt;
NewImage=imadd(im1, im2);&lt;br&gt;
&lt;br&gt;
Once again check the imadd help for more tips and troubleshooting.&lt;br&gt;
&lt;br&gt;
I hope this can do the trick... &lt;br&gt;
If you don't have the image processing toolbox... hum... it will be hard.&lt;br&gt;
&lt;br&gt;
Igor&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&quot;Joe Frank&quot; &amp;lt;sascod@gmail.com&amp;gt; wrote in message &amp;lt;hd81je$2b9$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; jonny &amp;lt;jonnazemi@gmail.com&amp;gt; wrote in message &amp;lt;e0176e1c-3cfb-4a59-81ed-6ede6dc961d7@j19g2000vbp.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; On Nov 8, 9:37?pm, &quot;Joe Frank&quot; &amp;lt;sas...@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; I have two images.. im1 and im2&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; im1 is 1200x1 matrix&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; im2 is 1450x1 matrix&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; I want to add im1 and im2 for further calculation. How do I do it?&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; you need to interpolate one over the range of the other. I would&lt;br&gt;
&amp;gt; &amp;gt; interpolate the 1450 over the 1200 range.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; How do I interpolate them?</description>
    </item>
  </channel>
</rss>

