Sliding window for image
Afficher commentaires plus anciens
Hi can anyone show me how to use a 32x32 sliding window on an image using and extract the mean from each window?
Thanks
Réponse acceptée
Plus de réponses (1)
Joseph Cheng
le 17 Avr 2014
You can use blockproc().
M=magic(10);
fun =@(MEANS) mean(MEANS.data(:));
blockproc(M,[2 2],fun)
Catégories
En savoir plus sur Image Processing Toolbox 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!