How to move a 7x7 window around image?
1 回表示 (過去 30 日間)
古いコメントを表示
Hi! I'm having a hard time with this. I need to evaluate each pixel on a image using a 7x7 window, where the pixel to be evaluated on the image will be located at the center of the window. How can I set up the code to move the window around the image and how can I specify conditions where I'm evaluating pixels on the boundary of the image, like a pixel located at (1,1) or at (512,768)? Any help will be greatly appreciated. Thanks!
0 件のコメント
回答 (1 件)
Sebastian Castro
2017 年 4 月 20 日
編集済み: Sebastian Castro
2017 年 4 月 20 日
You likely want to use the imfilter function exactly as in this example, but swapping out the 5-by-5 example filter with a 7-by-7 of your choice.
If you look at the options available for imfilter ( see documentation ), you'll see there's a couple things you can configure for boundaries.
Sebastian
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!