How to smooth the given image?

조회 수: 37 (최근 30일)
Jay Vaidya
Jay Vaidya 2020년 2월 1일
답변: Sridhar SG 2020년 2월 2일
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 11.jpg image 2 2.jpeg

채택된 답변

Sridhar SG
Sridhar SG 2020년 2월 2일
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);
index.jpeg
Before Blur is smoothening is applied
res3.jpg
After smoothening is applied

추가 답변 (1개)

Image Analyst
Image Analyst 2020년 2월 1일
Use imnoise() to add noise to it, then use imfilter() to blur it.

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by