Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Image Neighbourhood
Date: Fri, 23 Mar 2012 19:33:32 +0000 (UTC)
Organization: Xoran Technologies
Lines: 9
Message-ID: <jkij6c$nrp$1@newscl01ah.mathworks.com>
References: <10038391.985.1332529971996.JavaMail.geo-discussion-forums@pbje9>
Reply-To: <HIDDEN>
NNTP-Posting-Host: www-06-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1332531212 24441 172.30.248.38 (23 Mar 2012 19:33:32 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 23 Mar 2012 19:33:32 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1440443
Xref: news.mathworks.com comp.soft-sys.matlab:761994

Ravi Shekhar <ravishekhar.82@gmail.com> wrote in message <10038391.985.1332529971996.JavaMail.geo-discussion-forums@pbje9>...
> I have a binary image (say 256 X 256) and for given points (e.g. (5,10), (20,100), (20,200) etc),
> I want to find 17 x 17 neighbourhood of all given points in different matrix.
> I want to to it without for loop. 
==============

Elaborate on  why don't want to use a for loop. It doesn't sound like it would create any problems.

And how do you define the 17x17 neighborhood of (5,10) which is less than 17 away from the edge of the matrix.