フィルターのクリア

sliding window operation in image

6 ビュー (過去 30 日間)
VIJENDRA
VIJENDRA 2014 年 6 月 26 日
コメント済み: Image Analyst 2014 年 10 月 10 日
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.

採用された回答

Image Analyst
Image Analyst 2014 年 6 月 26 日
Try conv2(), imfilter(), nlfilter(), or, if you want to move in "jumps" instead of by one pixel, blockproc().
  3 件のコメント
VIJENDRA
VIJENDRA 2014 年 10 月 9 日
one can use nlfilter or blockprop.
Image Analyst
Image Analyst 2014 年 10 月 10 日
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.

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by