From: ImageAnalyst <>
Newsgroups: comp.soft-sys.matlab
Subject: Re: divide 1280-by-960 image into 9-by-9
Date: Sat, 28 May 2011 15:44:50 -0700 (PDT)
Lines: 30
Message-ID: <>
References: <irm4h1$jke$> <irrjp4$jkg$>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: 1306622690 10101 (28 May 2011 22:44:50 GMT)
NNTP-Posting-Date: Sat, 28 May 2011 22:44:50 +0000 (UTC)
Injection-Info:; posting-host=; posting-account=0rLUzAkAAABojYSRC64DkTbtiSCX77HH
User-Agent: G2/1.0
X-Google-Web-Client: true
X-Google-Header-Order: HUALESNKRC
X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 5.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1,gzip(gfe)
Xref: comp.soft-sys.matlab:729147

On May 28, 3:52 pm, "Roger Stafford"
<> wrote:
>   To ImageAnalyst and Areeba: I just ran across a matlab function which computes a normalized cross correlation of two-dimensional arrays.  It is called 'normxcorr2' and is to be found in the Image Processing Toolbox.  The documentation can be read at:

> Roger Stafford

Yes, you're right.  Good find!  That will be handy to know.  I never
noticed it because it's not a "See Also" under xcorr2, possibly
because they're in different toolboxes (Signal vs. Image).  But when
you type "correlation" into the help, the normxcorr2 function doesn't
show up until the 9th one down (R2011a), and it's not even mentioned
at all when you go to the top entry on correlation.

There is actually quite a nice demo using it in there: "Registering an
Image Using Normalized Cross-Correlation" which does what I think
areeba wants to do in early explorations.  However I very much agree
with Roger that this method ultimately will not be very good at
detecting cancerous locations.  It may work for a few locations where
the cancer pretty much exactly looks like the template, but won't be
robust enough in general to be a useful algorithm in the real-world
practical sense.  However, if it's just for limited demo purposes,
like a student homework project, then it may fit the bill as long as
you list potential disadvantages and limitations of it in the