how to create a sliding window?
1 回表示 (過去 30 日間)
古いコメントを表示
Hi guys, I would like to know ho to create a sliding window in a matrix. Thank you very much.
0 件のコメント
回答 (1 件)
Image Analyst
2015 年 10 月 19 日
You can use conv2() or imfilter(). For example:
windowWidth = 11;
kernel = ones(windowWidth, windowWidth) / windowWidth ^ 2;
smoothedImage = conv2(double(grayImage), kernel, 'same');
2 件のコメント
Walter Roberson
2018 年 12 月 25 日
Replace grayImage with the variable that stores your gray-scale image (not RGB)
参考
カテゴリ
Help Center および File Exchange で Import, Export, and Conversion についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!