Gabor 滤波器的 Matlab 代码文件夹我要分享

Gabor Filters for Matlab code folder

matlab gabor 代码 滤波器 文件夹

关注次数: 225

下载次数: 0

文件大小: 64.50 kB

代码分类: 其他

开发平台: matlab

下载需要积分: 2积分

版权声明:如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

代码描述

中文说明:功能 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);


English Description:

Gabor Filters for matlab code. In image processing, a Gabor filter, named after Dennis Gabor, is a linear filter used for edge detection. Frequency and orientation representations of Gabor filters are similar to those of the human visual system, and they have been found to be particularly appropriate for texture representation and discrimination. In the spatial domain, a 2D Gabor filter is a Gaussian kernel function modulated by a sinusoidal plane wave. Simple cells in the visual cortex of mammalian brains can be modeled by Gabor functions. Click the file on the left to start the preview,please !The preview only provides 20% of the code snippets, the complete code needs to be downloaded Loading Report


代码预览