-
大小: 1KB文件類型: .m金幣: 1下載: 0 次發(fā)布日期: 2021-06-11
- 語言: Matlab
- 標(biāo)簽: Butterworth??
資源簡(jiǎn)介
在Matlab中使用Butterworth濾波器進(jìn)行圖像處理
代碼片段和文件信息
%
%?File_name:巴特沃思低通濾波器的實(shí)現(xiàn)
%?Author:
%?Date:2009年10月15日
%
Blurred=imread(‘home3.bmp‘);
Blurred=rgb2gray(Blurred);%I?=?RGB2GRAY(RGB)?converts?the?truecolor?image?RGB?
??????????????????????????%to?the?grayscale?intensity?image?I.
figure(1);
imshow(?Blurred);
title(‘原圖像‘);
%設(shè)計(jì)巴特沃思低通濾波器
k=5;
[mn]=size(Blurred);
H=zeros(mn);
D0=30;
for?u=1:m
??????for?v=1:n
???????Duv=((u-round(m/2))^2+(v-round(n/2))^2)^(1/2);%ROUND(X)?rounds?the?elements?of?X?to?the?nearest?integers.
???????H(uv)=1/(1+(Duv/D0)^(2
評(píng)論
共有 條評(píng)論