資源簡介
圖片中有明顯的周期性噪聲,屏蔽光譜中的特定區域達到去噪,使用的濾波為理想濾波器。

代碼片段和文件信息
image?=?imread(‘SaturnRings.jpg‘);
image?=?rgb2gray(image);
spectra?=?fftshift(fft2(image230304));
%?spectra?=?log(spectra);
spectra(1:110152-3:152+3)?=?0;?%?ideal?filter
spectra(120:end152-3:152+3)?=?0;?%?ideal?filter
new_image?=?uint8(real(ifft2(ifftshift(spectra))));
new_image?=?new_image(1:2261:300);
subplot(121)imshow(new_image)title(‘Denoised‘);
subplot(122)imshow(image)title(‘Corrupted‘);
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????17675??2014-02-27?19:11??SaturnRings.jpg
?????文件????????434??2014-02-28?03:32??part2.m
-----------?---------??----------?-----??----
????????????????18109????????????????????2
- 上一篇:數字圖像處理-染色體計數
- 下一篇:歐拉法解常微分方程組數值解的MATLAB程序
評論
共有 條評論