Advertisement
kirill_76rus

ОМОИ_МОЕ

Nov 30th, 2021
1,170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.41 KB | None | 0 0
  1. close all;
  2. f=imread('image.tif');%Read image into variable
  3. imshow(f,[]);%Show original image
  4. F = fft2(double(f));%Find FFT transform
  5. [M, N] = size(f); %Find size of image
  6. H =@(U,V,D0)  (1 - exp(-(U.^2 + V.^2))); %It's function description Gaussina filter (Low - pass)
  7. G = HHs'.*F; % Apply our filter to image
  8. g = real(ifft2(G)); %find real part of image (after FFT we have real + image part)
  9. figure,imshow(g, [ ]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement