Path: news.mathworks.com!newsfeed-00.mathworks.com!NNTP.WPI.EDU!elk.ncren.net!newsflash.concordia.ca!canopus.cc.umanitoba.ca!not-for-mail
From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Newsgroups: comp.soft-sys.matlab
Subject: Re: Template Matching
Date: Mon, 7 Apr 2008 05:42:54 +0000 (UTC)
Organization: National Research Council Canada - Conseil national de rechereches Canada
Lines: 25
Message-ID: <ftcc8u$lpm$1@canopus.cc.umanitoba.ca>
References: <fsnera$t69$1@fred.mathworks.com> <b725e021-4633-4de8-ad57-abd4fcd9e27c@m36g2000hse.googlegroups.com> <c289070b-3451-4b79-a745-d6241471dc41@x19g2000prg.googlegroups.com> <647eb1a7-98ee-4b77-9d3a-6b42906c15e2@j1g2000prb.googlegroups.com>
NNTP-Posting-Host: origin.ibd.nrc.ca
X-Trace: canopus.cc.umanitoba.ca 1207546974 22326 192.70.172.160 (7 Apr 2008 05:42:54 GMT)
X-Complaints-To: abuse@cc.umanitoba.ca
NNTP-Posting-Date: Mon, 7 Apr 2008 05:42:54 +0000 (UTC)
Originator: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Xref: news.mathworks.com comp.soft-sys.matlab:461413



In article <647eb1a7-98ee-4b77-9d3a-6b42906c15e2@j1g2000prb.googlegroups.com>,
 <androalpha_v7@yahoo.com> wrote:
>i have A image to expand the size of it so that it have same size with
>B image.
>A image =[38 51]
>B image=[423 800}

>so how to do it?

You have a problem that those two images do not have the same
aspect ratio. Therefor in order to expand the size of A, you
are either going to need to leave some empty space in the enlarged
image, or you are going to have to stretch the x and y axes
unequally.

There are several different image resizing algorithms, with
different properties. For example, some of the algorithms
concentrate on preserving sharp edges and some of them do not.
In your situation, what (if any) characteristics of the source image 
are important to preserve in the enlarged image?

-- 
  "He wove a great web of knowledge, linking everything together, 
  and sat modestly at a switchboard at the center, eager to help."
                                              -- Walter Kerr