The problem of noise removal after FFT of polygon mask

1 visualizzazione (ultimi 30 giorni)
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.

Risposta accettata

Matt J
Matt J il 14 Apr 2023
Modificato: Matt J il 15 Apr 2023
If you increase the sampling fineness, I expect the artifacts will diminish.
  3 Commenti
Matt J
Matt J il 17 Apr 2023
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 il 19 Apr 2023
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.

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Fourier Analysis and Filtering in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by