How to smooth the given image?
60 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Jay Vaidya
le 1 Fév 2020
Réponse apportée : Sridhar SG
le 2 Fév 2020
I want to make the image 1 as smooth as possible such that it looks like image 2. I was thinking to decrease the grid size but I don't know how to do that. Thanks in advance,
image 1 image 2
0 commentaires
Réponse acceptée
Sridhar SG
le 2 Fév 2020
You can use the imgaussfilt() function to smoothen the image
Example code:
I = imread('index.jpeg');
figure();
imshow(I);
I = imgaussfilt(I,2);
figure();
imshow(I);
Before Blur is smoothening is applied
After smoothening is applied
For your reference: https://in.mathworks.com/help/images/apply-gaussian-smoothing-filters-to-images.html
0 commentaires
Plus de réponses (1)
Image Analyst
le 1 Fév 2020
Use imnoise() to add noise to it, then use imfilter() to blur it.
0 commentaires
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!