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