利用matlab编写的Butterworth低通滤波程序
来源:互联网 发布:音乐的发展历程知乎 编辑:程序博客网 时间:2024/05/22 12:36
clear all;
close all;
P=input('inputimage data:');
d=size(P);
if(d(3)>1)
P=rgb2gray(P);
end
subplot(131);imshow(P);
title('原始图像');
P1=imnoise(P,'salt& pepper',0.02);
subplot(132)
imshow (P1);
title('加入椒盐噪声后的图像');
f=double(P1);
g=fft2(f);%傅里叶变换
g=fftshift(g);%转换数据矩阵fftshift是针对频域的,将FFT的DC分量移到频谱中心
即对频域的图像,
[M,N]=size(g);
D0=input('inputnonnegative dhreshold D0=');
n=input('input theorder of filtering n=');
n1=fix(M/2);
n2= fix(N/2);
for i=1:M
for j=1:N
d=sqrt((i-n1)^2+(j-n2)^2);
h=1/(1+(d/D0)^(2*n));
result(i,j)=h*g(i,j);
end
end
result=ifftshift(result);
X2=ifft2(result);
X3=uint8(real(X2));
subplot(133)
imshow (X3);
title('Butterworth低通滤波所得图像');
- 利用matlab编写的Butterworth低通滤波程序
- 高通滤波,低通滤波,butterworth
- butterWorth低通滤波器
- ButterWorth滤波
- matlab用傅里叶变换实现图像的低通滤波
- matlab图像陷波滤波以及低通滤波
- 标准的低通滤波
- matlab/简单的滤波程序
- Matlab实现Butterworth滤波器
- 高通滤波与低通滤波的简单理解
- 图像的频域滤波-低通滤波
- 利用matlab编写gps处理程序
- 低通滤波
- 低通滤波
- python 低通滤波
- FIR低通滤波
- 同态滤波 matlab 程序
- matlab 同态滤波程序
- 使用apache自带的压力测试工具进行网站压力测试
- c#在Asp.Net中解析json数据
- Shapes-Object4
- QT安装文件的制作
- json 解析
- 利用matlab编写的Butterworth低通滤波程序
- Linux中断(interrupt)子系统之三:中断流控处理层
- collate chinese_prc_ci_as null 是什么意思
- 苹果消息推送服务教程:第一二部分(共2部分)
- __declspec(dllimport)的作用
- MyEclipse 8.5注册码(到2016年)
- Eclipse启动Jboss服务器指定JVM虚拟内存
- 苹果消息推送服务教程:第三部分
- STM32 启动文件选择