Path: news.mathworks.com!not-for-mail
From: "Sanjeet kumar" <san.ank9@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Basic Image Processing
Date: Mon, 9 Nov 2009 05:07:03 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 8
Message-ID: <hd881n$6jt$1@fred.mathworks.com>
References: <hd7upe$aep$1@fred.mathworks.com> <1wLJm.2056$cd7.1349@newsfe04.iad> <hd81je$2b7$1@fred.mathworks.com> <13MJm.14503$ET3.796@newsfe17.iad>
Reply-To: "Sanjeet kumar" <san.ank9@gmail.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1257743223 6781 172.30.248.38 (9 Nov 2009 05:07:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 9 Nov 2009 05:07:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1727831
Xref: news.mathworks.com comp.soft-sys.matlab:583472



if you don't have IP tool box then u can simply add the two images by matrix addition.
make two for loop
one for top to bottp pixels and one for left two right pixel 
i.e, (x,y)
then you  can add each pixel intensities
 like im3(x,y)=im1(x,y)+im2(x,y)
hence you will get a new matrix which will be addition of the first two images