资 源 简 介
功能 gb=gabor_fn(sigma,theta,lambda,psi,gamma) sigma_x = 西格玛;sigma_y = 西格玛/γ;%边界框 nstds = 3;xmax = max(abs(nstds*sigma_x*cos(theta)),abs(nstds*sigma_y*sin(theta)));xmax = ceil(max(1,xmax));ymax = max(abs(nstds*sigma_x*sin(theta)),abs(nstds*sigma_y*cos(theta)));ymax = ceil(max(1,ymax));xmin =-xmax;ymin =-ymax;[x,y] = meshgrid(xmin:xmax,ymin:ymax);旋转 x_theta=x*cos(theta)+y*sin(theta) %;y_theta=-x*sin(theta)+y*cos(theta)gb = exp(-.5*(x_theta.^2/sigma_x^2+y_theta.^2/sigma_y^2)).*cos(2*pi/lambda*x_theta+psi);