Smoothing 2D matrix

32 vues (au cours des 30 derniers jours)
Taindra Neupane
Taindra Neupane le 21 Juil 2020
Réponse apportée : waqas le 21 Juil 2020
Hi,
I have a 2D matrix data as shown in surf plot below. It has lots spikes or noise even after 2dinterpolation.But I want to smooth it and I could not find any funtion/code to make it smoother. I am looking forward to your comments as soon as possible. Thanks.

Réponses (1)

waqas
waqas le 21 Juil 2020
May be using this would work:
Where A is 2D matrix and FilterSize can be changed to control smoothenig you want.
imgaussfilt(A,'FilterSize',3);
Other option can be to use fspecial function.

Catégories

En savoir plus sur Smoothing 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!

Translated by