How to use 2D FFT to remove horizontal noise from the image

조회 수: 4 (최근 30일)
Jensen Lee
Jensen Lee 2023년 11월 12일
댓글: Mathieu NOE 2023년 11월 15일
Sorry a beginner here. I have no clue on how to remove the horizontal noise from the images using the 2D FFT method. I've found some code online but it doesn't seem to work can anyone help me. Thank you.
This is the picture with amplified noise
This is the original picture with the noise

채택된 답변

Mathieu NOE
Mathieu NOE 2023년 11월 13일
hello
you can start with simple 2D filtering
here some examples you can easily try once you have dowloaded those functions : smooth2a and smoothn from here
Result with smooth2a (notice you can have different smoothing factor for x and y directions)
Result with smoothn
demo code
inpict = im2double(rgb2gray(imread('image.png')));
figure(1)
outpict = smooth2a(inpict,5,3);
subplot(1,2,1),imagesc(inpict)
subplot(1,2,2),imagesc(outpict)
figure(2)
outpict = smoothn(inpict);
subplot(1,2,1),imagesc(inpict)
subplot(1,2,2),imagesc(outpict)
  댓글 수: 6
Jensen Lee
Jensen Lee 2023년 11월 15일
Hi Mathieu NOE,
Sorry for the late reply. Thank you for your answer.
Mathieu NOE
Mathieu NOE 2023년 11월 15일
No problem
as always, my pleasure !

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Spectral Estimation에 대해 자세히 알아보기

태그

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by