Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Basic Image Processing
Date: Mon, 9 Nov 2009 09:18:02 +0000 (UTC)
Organization: Universit&#228;t Heidelberg
Lines: 19
Message-ID: <hd8moa$cpv$1@fred.mathworks.com>
References: <hd7upe$aep$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1257758282 13119 172.30.248.35 (9 Nov 2009 09:18:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 9 Nov 2009 09:18:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 869888
Xref: news.mathworks.com comp.soft-sys.matlab:583493


Dear Joe!

> I have two images im1 and im2
> 
> im1 is 1200x1 matrix
> im2 is 1450x1 matrix
> 
> I need to add im1 and im2 for further calculation. How do I do it?

This depends on how you define "add".

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.

2. If you want to crop one of the images instead, do this.

3. If "add" means something like "add", simply add the arrays.
If image addition meanse an averaging, divide the result by 2.

Good luck, Jan