FFT and wiener2
조회 수: 3 (최근 30일)
이전 댓글 표시
Hi All,
Please ignore my dumbness. I have a single slice gray image. I wan to try wiener2 filter to keep the information and denoise it a bit. I tried the following code but i get the figure ifft_orig as final image instead of a bit blurred version of original image. Can some one tell me what am i doing wrong?
tmp = load('Slc1.mat'); % figure (orig_img.png) corresponds to this variable
tmp1 = fft2(tmp);
tmp2 = fftshift(log(1+abs(tmp1))); % figure (fft_orig.png) corresponds to this variable
[tmp4,noise] = wiener2(tmp2); % figure (filtered_fft_orig.png)
% figure (fft_orig - filtered _fft_orig.png)
tmp4 = ifftshift(tmp4);
tmp4 = ifft2(tmp4); % figure(ifft_orig.png)
댓글 수: 0
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!