⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gaborfilter.m

📁 The matlab program is effective to be used for fringe processing. It contours strain distribution us
💻 M
字号:
%upload on 26-05-09. To contact author, Dr Wang Jun, please drop you
%message at wangjun5100@hotmail.com 

function[h]=gaborfilter(U,V)

F=sqrt(U^2+V^2);
A=atan2(V,U);

a=sqrt(log(2)/2);
j=sqrt(-1);
Q=36.8699*pi/180; % orientation bandwidth 37 degree corresponding to B=1.0 ocatave
std=a/(tan(Q/2)*pi*F);

%std=1/F;

bandwidth=fix(3*std);% define the bandwidth of the Gabor filter in the fourier domain
g = fspecial('gaussian',2*bandwidth+1,std);

for k=-bandwidth:bandwidth,
   e1(k+bandwidth+1)=exp(j*2*pi*(U*k));% vertical fringes
   e2(k+bandwidth+1)=exp(-j*2*pi*(V*k));% horizontal fringes % note the rotation direction is clockwise
end

for k=-bandwidth:bandwidth,
   h1(k+bandwidth+1,:)=e1;
   h2(:,k+bandwidth+1)=e2';
end

h=h2.*g.*h1;
return;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -