Smoothing a 2d matrix

3 ビュー (過去 30 日間)
Haythem Zouabi
Haythem Zouabi 2020 年 11 月 11 日
回答済み: Sibi 2020 年 12 月 17 日
Hello,
I have a 2d matrix. I need to smooth this matrix by filtering small gradient and keep the highest gradient?
Thanks,

回答 (1 件)

Sibi
Sibi 2020 年 12 月 17 日
x=randi(10,2,3);
c = smooth(x(:));
y= reshape(c,height(x),width(x))

カテゴリ

Help Center および File ExchangeSmoothing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by