フィルターのクリア

Neighborhood processing with nlfilter

1 回表示 (過去 30 日間)
Twain Glaser
Twain Glaser 2015 年 11 月 2 日
回答済み: Image Analyst 2015 年 11 月 3 日
I'm attempting to isolate the 4-neighborhood for processing while using the nlfilter. I can isolate the 8-neighbors by simply using a kernel size of 3x3, but is there a way I can write a function to further isolate the 4-neighbors and then do my processing. Thank you in advance for your help.

回答 (1 件)

Image Analyst
Image Analyst 2015 年 11 月 3 日
It gives you a n by m subimage. What you choose to do with that is up to you. You can ignore the diagonal elements if you want - just simply don't use them in your algorithm.

Community Treasure Hunt

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

Start Hunting!

Translated by