The problem of noise removal after FFT of polygon mask

조회 수: 1 (최근 30일)
zzzj1208
zzzj1208 2023년 4월 14일
댓글: zzzj1208 2023년 4월 19일
I want to perform FFT on the polygon mask. The polygon mask data is `hexagon.mat`, and the image `star` is obtained after the following operation.
Y_starburst = abs(fftshift(fft2(hexagon))).^1.2;
Y_starburst = Y_starburst/255;
figure;
imshow(Y_starburst);
How to operate to get only six bright stripes and delete the surrounding messy stripes? Any help would be greatly appreciated.

채택된 답변

Matt J
Matt J 2023년 4월 14일
편집: Matt J 2023년 4월 15일
If you increase the sampling fineness, I expect the artifacts will diminish.
  댓글 수: 3
Matt J
Matt J 2023년 4월 17일
load hexagon
Y_starburst = abs(fftshift(fft2(X))).^1.2;
Y_starburst = Y_starburst/255;
figure;
imshow(Y_starburst); caxis([0,255]); axis([181.8347 339.7194 181.5928 339.4775])
zzzj1208
zzzj1208 2023년 4월 19일
Thanks again for your answer, looks closer to what I was looking for!
Because I want to approximate the diffraction pattern of light with a hexagonal FFT, using your above code can get `star pattern`.
But the constant problem is that there is some 'noise' that I don't want to think about (circled in red, sorry, I'm not sure how to say it in technical terms). Perhaps there is some way you can remove this noise so that it looks smoother and more like real world beams? as the `input_000042.png` shows. Any help would be greatly appreciated.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Fourier Analysis and Filtering에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by