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

1 vue (au cours des 30 derniers jours)
Mayuri
Mayuri le 5 Fév 2016
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?

Réponse acceptée

Guillaume
Guillaume le 5 Fév 2016
nlfilter(img, [11 11], @(block) max(block(:)))

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by