Smoothing a 2d matrix

Hello,
I have a 2d matrix. I need to smooth this matrix by filtering small gradient and keep the highest gradient?
Thanks,

Respuestas (1)

Sibi
Sibi el 17 de Dic. de 2020

0 votos

x=randi(10,2,3);
c = smooth(x(:));
y= reshape(c,height(x),width(x))

Categorías

Preguntada:

el 11 de Nov. de 2020

Respondida:

el 17 de Dic. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by