<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265321</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:29:02 -0500</pubDate>
      <title>Basic Image Processing</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265321#693119</link>
      <author>Joe Frank</author>
      <description>Hello,&lt;br&gt;
&lt;br&gt;
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 need to add im1 and im2 for further calculation. How do I do it?&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
Joe</description>
    </item>
    <item>
      <pubDate>Mon, 09 Nov 2009 02:54:51 -0500</pubDate>
      <title>Re: Basic Image Processing</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265321#693123</link>
      <author>Nasser M. Abbasi</author>
      <description>&lt;br&gt;
&quot;Joe Frank&quot; &amp;lt;sascod@gmail.com&amp;gt; wrote in message &lt;br&gt;
news:hd7upe$aep$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; Hello,&lt;br&gt;
&amp;gt;&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 need to add im1 and im2 for further calculation. How do I do it?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Thanks,&lt;br&gt;
&amp;gt; Joe&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
if you have Image Processing Toolbox, then do&lt;br&gt;
&lt;br&gt;
help imadd&lt;br&gt;
&lt;br&gt;
&amp;nbsp;IMADD Add two images or add constant to image.&lt;br&gt;
&lt;br&gt;
--Nasser&lt;br&gt;
ps. strange image sizes you have there. </description>
    </item>
    <item>
      <pubDate>Mon, 09 Nov 2009 03:17:02 -0500</pubDate>
      <title>Re: Basic Image Processing</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265321#693126</link>
      <author>Joe Frank</author>
      <description>&quot;Nasser M. Abbasi&quot; &amp;lt;nma@12000.org&amp;gt; wrote in message &amp;lt;1wLJm.2056$cd7.1349@newsfe04.iad&amp;gt;...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &quot;Joe Frank&quot; &amp;lt;sascod@gmail.com&amp;gt; wrote in message &lt;br&gt;
&amp;gt; news:hd7upe$aep$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; &amp;gt; Hello,&lt;br&gt;
&amp;gt; &amp;gt;&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 need 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; Thanks,&lt;br&gt;
&amp;gt; &amp;gt; Joe&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; if you have Image Processing Toolbox, then do&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; help imadd&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt;  IMADD Add two images or add constant to image.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; --Nasser&lt;br&gt;
&amp;gt; ps. strange image sizes you have there. &lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
I dont have Image Processing Toolbox. In what other ways I can add them?&lt;br&gt;
&lt;br&gt;
ps. I just gave an example. Its not the actual image size.&lt;br&gt;
&lt;br&gt;
Thanks</description>
    </item>
    <item>
      <pubDate>Mon, 09 Nov 2009 03:32:11 -0500</pubDate>
      <title>Re: Basic Image Processing</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265321#693129</link>
      <author>Nasser M. Abbasi</author>
      <description>&lt;br&gt;
&quot;Joe Frank&quot; &amp;lt;sascod@gmail.com&amp;gt; wrote in message &lt;br&gt;
news:hd81je$2b7$1@fred.mathworks.com...&lt;br&gt;
&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I dont have Image Processing Toolbox. In what other ways I can add them?&lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;br&gt;
Joe;&lt;br&gt;
&lt;br&gt;
This toolbox comes with the student version. if you are student it should be &lt;br&gt;
there unless you have an old version of matlab. type 'ver' to find out.&lt;br&gt;
&lt;br&gt;
if you'r not student, you can buy this toolbox from Mathworks and add it to &lt;br&gt;
your installation.&lt;br&gt;
&lt;br&gt;
if you do lots of image processing, it is very useful.&lt;br&gt;
&lt;br&gt;
--Nasser</description>
    </item>
    <item>
      <pubDate>Mon, 09 Nov 2009 05:07:03 -0500</pubDate>
      <title>Re: Basic Image Processing</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265321#693138</link>
      <author>Sanjeet kumar</author>
      <description>&lt;br&gt;
if you don't have IP tool box then u can simply add the two images by matrix addition.&lt;br&gt;
make two for loop&lt;br&gt;
one for top to bottp pixels and one for left two right pixel &lt;br&gt;
i.e, (x,y)&lt;br&gt;
then you  can add each pixel intensities&lt;br&gt;
&amp;nbsp;like im3(x,y)=im1(x,y)+im2(x,y)&lt;br&gt;
hence you will get a new matrix which will be addition of the first two images</description>
    </item>
    <item>
      <pubDate>Mon, 09 Nov 2009 09:18:02 -0500</pubDate>
      <title>Re: Basic Image Processing</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265321#693159</link>
      <author>Jan Simon</author>
      <description>Dear Joe!&lt;br&gt;
&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 need to add im1 and im2 for further calculation. How do I do it?&lt;br&gt;
&lt;br&gt;
This depends on how you define &quot;add&quot;.&lt;br&gt;
&lt;br&gt;
1. If you want to rescale the images at first, use INTERP1 for one of the images such that both images have the same size afterwards. For more usual 2D images, try INTERP2.&lt;br&gt;
&lt;br&gt;
2. If you want to crop one of the images instead, do this.&lt;br&gt;
&lt;br&gt;
3. If &quot;add&quot; means something like &quot;add&quot;, simply add the arrays.&lt;br&gt;
If image addition meanse an averaging, divide the result by 2.&lt;br&gt;
&lt;br&gt;
Good luck, Jan</description>
    </item>
  </channel>
</rss>

