From: ImageAnalyst <>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Image Neighbourhood
Date: Mon, 26 Mar 2012 07:50:25 -0700 (PDT)
Lines: 18
Message-ID: <>
References: <10038391.985.1332529971996.JavaMail.geo-discussion-forums@pbje9>
 <> <jkpopq$ieu$>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: 1332773426 18993 (26 Mar 2012 14:50:26 GMT)
NNTP-Posting-Date: Mon, 26 Mar 2012 14:50:26 +0000 (UTC)
Injection-Info:; posting-host=; 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: 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.