Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Need help
Date: Mon, 31 Dec 2012 04:44:12 +0000 (UTC)
Organization: Procter &#38; Gamble Co
Lines: 7
Message-ID: <kbr56s$1am$1@newscl01ah.mathworks.com>
References: <kbje3q$evs$1@newscl01ah.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: www-05-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1356929052 1366 172.30.248.37 (31 Dec 2012 04:44:12 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 31 Dec 2012 04:44:12 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1343420
Xref: news.mathworks.com comp.soft-sys.matlab:785650

"Krishna Chaitanya Nosina" <nkc_abbas@yahoo.co.in> wrote in message <kbje3q$evs$1@newscl01ah.mathworks.com>...
> Hi,
>     Please help me in reading 3x3 matrix at a time from 256x256 image coefficients and the process will be repeated for all the pixel values.
-----------------------------------------------------------------------------------
Krishna :
I suggest you use imfilter() or conv2().  Or you can use blockproc().  Or (last resort) you can do it yourself with 4 for loops, the outer two over rows and columns, and the inner two over the 3 by 3 sliding window.  What operation do you plan on doing in that sliding window?
Image Analyst