Smoothing a 2d matrix

조회 수: 7 (최근 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 CenterFile Exchange에서 Smoothing and Denoising에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by