Filter löschen
Filter löschen

sliding window operation in image

6 Ansichten (letzte 30 Tage)
VIJENDRA
VIJENDRA am 26 Jun. 2014
Kommentiert: Image Analyst am 10 Okt. 2014
I have an image of size 256*256, i want to use 3*3 window which slides over image and change the value of central pixel as sum of neighbouring 8 pixels. Please Help.

Akzeptierte Antwort

Image Analyst
Image Analyst am 26 Jun. 2014
Try conv2(), imfilter(), nlfilter(), or, if you want to move in "jumps" instead of by one pixel, blockproc().
  3 Kommentare
VIJENDRA
VIJENDRA am 9 Okt. 2014
one can use nlfilter or blockprop.
Image Analyst
Image Analyst am 10 Okt. 2014
Sorry, for some reason I didn't see your follow up question from June until now. Please see my demo of nlfilter where you can have it perform your own custom operation/filter on the window at each location.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by