how to create a sliding window?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi guys, I would like to know ho to create a sliding window in a matrix. Thank you very much.
0 commentaires
Réponses (1)
Image Analyst
le 19 Oct 2015
You can use conv2() or imfilter(). For example:
windowWidth = 11;
kernel = ones(windowWidth, windowWidth) / windowWidth ^ 2;
smoothedImage = conv2(double(grayImage), kernel, 'same');
2 commentaires
Walter Roberson
le 25 Déc 2018
Replace grayImage with the variable that stores your gray-scale image (not RGB)
Voir également
Catégories
En savoir plus sur Signal Processing Toolbox dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!