资源简介
Gabor FILTER MATLAB
IMAGE PROCESSING
代码片段和文件信息
% GABORFILTER Bi-dimensional Gabor filter with DC component compensation.
% [GGABOUT]=GABORFILTER(ISFWP) filters the input image I with the 2D
% Gabor filter G described by the parameters S F W and P to create the
% output filtered image GABOUT.
% This version of the 2D Gabor filter is basically a bi-dimensional
% Gaussian function centered at origin (00) with variance S modulated by
% a complex sinusoid with polar frequency (FW) and phase P described by
% the following equation:
%
% G(xySFWP)=k*Gaussian(xyS)*(Sinusoid(xyFWP)-DC(FSP))
% where:
% Gaussian(xyS)=exp(-pi*S^2*(x^2+y^2))
% Sinusoid(xyFWP)=exp(j*(2*pi*F*(x*cos(W)+y*sin(W))+P)))
% DC(FSP)=exp(-pi*(F/S)^2+j*P)
%
% PS: The term DC(FSP) compensates the inherent DC component produced
% by the Gaussian envelop as shown by Movellan in [1].
%
% Tips:
% 1) To get the real part and the imaginary part of the complex
% filter output use real(gabout) and imag(gabout) respectively;
%
% 2) To get the magnitude and the phase of the complex filter output
% use abs(gabout) and angle(gabout) respectively.
% Author: Stiven Schwanz Dias e-mail: stivendias@gmail.com
% Cognition Science Group Informatic Department
% University of Esp韗ito Santo Brazil January 2007.
%
% References:
% [1] Movellan J. R. - Tutorial on Gabor Filters. Tech. rep. 2002.
function [GGABOUT]=gaborfilter(ISFWP);
if isa(I‘double‘)~=1
I=double(I);
end
size=fix(1.5/S); % exp(-1.5^2*pi) < 0.1%
%k=2*pi*S^2;
%F=S^2/sqrt(2*pi);
k=1;
for x=-size:size
for y=-size:size
G(size+x+1size+y+1)=k*exp(-pi*S^2*(x*x+y*y))*...
(exp(j*(2*pi*F*(x*cos(W)+y*sin(W))+P))-exp(-pi*(F/S)^2+j*P));
end
end
GABOUT=conv2(Idouble(G)‘same‘);
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2093 2006-12-30 02:14 colormaps.mat
文件 1903 2007-01-02 19:33 gaborfilter.m
文件 857 2008-05-31 16:15 gabortest.m
文件 69214 2007-05-22 20:18 lena.jpg
文件 1340 2009-05-19 23:41 license.txt
- 上一篇:matlab时间序列工具箱
- 下一篇:小波神经网络MATLAB实现
相关资源
- 数字图像处理-圆拟合matlab代码
- 基于MATLAB的数字可视化图像处理GUI设
- 运用偏微分方程(PDE)方法进行图像
- 在matlab下,验证码识别部分,字符分
- 计算机视觉、图像处理、硬币识别
- 最全图像评价性能指标函数matlab
- 图像性能指标matlab版本
- 曲波变换重构
- [MATLAB]数字图像处理—直方图均衡、直
- 数字图像处理GUI
- 图像处理的matlab程序
- 数字图像处理——Matlab
- 基于MATLAB的SAD模板匹配算法
- 论文研究-双阈值分割于本色布疵点检
- MATLAB在数字图像处理中的应用-MATLAB在
- 指纹识别程序Gabor滤波+详细注释+代码
- 指纹图像预处理程序
- matlab开发-RungeKuttaNystrom
- Matlab求灰度共生矩阵的特征值
- 数字图像处理matlab版m文件
- CT图像重建的MATLAB代码
- 数字图像处理基于MATLAB膨胀算法实现
- 利用matlab提高图像对比度
- 数字图像处理-染色体计数
- MATLAB数字图像处理算法演示程序GUI
- 数字图像处理matlab版本书中源程序及
- 多维压缩感知中三维图像处理Matlab
- K-means应用于图像处理matlab程序
- matlab实现的图像梯形矫正
- 数字图像处理源冈萨雷斯源代码
评论
共有 条评论