Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!px4g2000pbc.googlegroups.com!not-for-mail
From: ImageAnalyst <imageanalyst@mailinator.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Image Neighbourhood
Date: Mon, 26 Mar 2012 07:50:25 -0700 (PDT)
Organization: http://groups.google.com
Lines: 18
Message-ID: <c5e656f8-77cb-4d65-b578-e99a20fcfd56@px4g2000pbc.googlegroups.com>
References: <10038391.985.1332529971996.JavaMail.geo-discussion-forums@pbje9>
 <8e54b0d9-1462-4547-9713-b73f816cf298@z3g2000pbn.googlegroups.com> <jkpopq$ieu$1@newscl01ah.mathworks.com>
NNTP-Posting-Host: 137.183.232.22
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1332773426 18993 127.0.0.1 (26 Mar 2012 14:50:26 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 26 Mar 2012 14:50:26 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: px4g2000pbc.googlegroups.com; posting-host=137.183.232.22; posting-account=0rLUzAkAAABojYSRC64DkTbtiSCX77HH
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20100101 Firefox/11.0,gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:762231

On Mar 26, 8:52 am, "Matt J " <mattjacREM...@THISieee.spam> wrote:
> I'm not sure I follow. The OP is trying to extract multiple 17x17 neighborhoods automatically. Your code seems to extract only one.
---------------------------------------------------------------------
Yes, it extracts only one.  As I understood it, he does only want
one.  He said "for given points (e.g. (5,10), (20,100), (20,200) etc),
I want to find 17 x 17 neighbourhood"

So for his example he would get one 17x17 neighborhood with the upper
left corner (row1, column1) being (5,10), and he'd get the second
17x17 neighborhood with the upper left corner being (20,100), and
another one with the upper left corner being (20,200).  He didn't want
one located at every single pixel of the millions of pixels in the
entire image, just those few "given points" that he specified.  My
code extracts multiple neighborhoods only if you call it multiple
times, once for each of the few "given points."  At least that's how I
understood it.  Ravi please correct me if I'm wrong.