The problem of noise removal after FFT of polygon mask

1 次查看(过去 30 天)
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