How can I make a Loop (!) over the image using a 5×5 pixel window
Afficher commentaires plus anciens
Loop (!) over the image using a 5×5 pixel window. For each such window, compute the average pixel value and store the result in a new image. Treat borders in some controlled way and make sure the result has the same size in pixels as the original image. You will need at least two nested for-loops, to scan rows and columns in your image.
4 commentaires
Walter Roberson
le 14 Nov 2019
Overlapping windows, or non-overlapping windows?
Look at blockproc()
KALYAN ACHARJYA
le 14 Nov 2019
There is no need of loops, is it must be use?
Nadeen Bahnam
le 14 Nov 2019
Walter Roberson
le 14 Nov 2019
nlfilt(), blockproc(), conv2()
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Neighborhood and Block Processing dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!