How to impose a window centered on the current pixel of an image?

1 次查看(过去 30 天)
I have a noisy image of size 256x256. I need to impose a 11x11 window centered on the current pixel and find the maximum value within the window. This step should be repeated for all pixels in the image. Can anyone help me how to do that in MATLAB?

采纳的回答

Guillaume
Guillaume 2016-2-5
nlfilter(img, [11 11], @(block) max(block(:)))

更多回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by