gabor filters matlab,matlab实现gabor filter (1)
在 matlab中进行计算gabor filter,自己一步步的构建滤波器矩阵:
先构建gabor滤波器,然后和需要进行滤波的图像进行卷积
代码中的size用来确定gabor filter卷积模板窗口大小。但是这里的size的卷积模板有点偏小,一般都是乘上个系数,或者4或者8.
% GABORFILTER Bi-dimensional Gabor filter with DC component compensation.
% [G,GABOUT]=GABORFILTER(I,S,F,W,P) 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 (0,0) with variance S modulated by
% a complex sinusoid with polar frequency (F,W) and phase P described by
% the following equation:
%
% G(x,y,S,F,W,P)=k*Gaussian(x,y,S)*(Sinusoid(x,y,F,W,P)-DC(F,S,P)),
% where:
% Gaussian(x,y,S)=exp(-pi*S^2*(x^2+y^2))
% Sinusoid(x,y,F,W,P)=exp(j*(2*pi*F*(x*cos(W)+y*sin(W))+P)))
% DC(F,S,P)=exp(-pi*(F/S)^2+j*P)
%
% PS: The term DC(F,S,P) 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.
%
% References:
% [1] Movellan, J. R. - Tutorial on Gabor Filters. Tech. rep., 2002.
function [G,GABOUT]=gabor_a(I,S,F,W,P)
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+1,size+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(I,double(G),'same');
gabor filters matlab,matlab实现gabor filter (1)相关推荐
- gabor filters matlab,gabor filter matlab
场景:matlab兑现gabor filter (1) matlab实现gabor filter (1) 在 matlab中进行计算gabor filter,自己一步步的构建滤波器矩阵: 先构建gab ...
- gabor小波matlab,用matlab实现gabor小波对图片的纹理特征提取【转】
用matlab实现gabor小波对图片的纹理特征提取[转] (2009-04-27 14:35:41) 过程如下: (1)在matlab中,用gaborfilter.m程序实现对三种农作物(小麦.棉花 ...
- 二维gabor滤波器matlab,matlab中实现Gabor滤波器 | 学步园
1.spatialgabor.m描述gabor函数 % SPATIALGABOR - applies single oriented gabor filter to an image % % Usag ...
- gabor 幅值域 matlab,组合局部多通道Gabor滤波器和ICA的人脸描述与识别
0引言人脸识别是当前人工智能和模式识别的研究热点,广泛应用于身份识别.护照识别.信用卡识别.摄像监视系统等领域.美国"911"事件后,人脸识别技术已经成为反恐的一种重要技术手段.在 ...
- 【Matlab】如何使用Filter Design设计低通、高通、带阻滤波器
如何使用Filter Design设计低通.高通.带阻数字滤波器. 文章目录 前言 一.低通滤波器 二.高通滤波器 三.带阻滤波器 前言 使用Matlab自带的Filter Design APP可以方 ...
- Face Recognition using Gabor Filters
摘要 基于Gabor的人脸表示在人脸识别中取得了巨大的成功.本文提出了一种利用Gabor特征训练的神经网络进行人脸识别的新算法.在不同尺度上对一系列图像进行有效的卷积.本文的两个新贡献是:RMS对 ...
- 【Matlab】conv、filter、conv2、filter2和imfilter卷积函数总结
[Matlab]conv.filter.conv2.filter2和imfilter函数总结 1. conv函数 作用: 1.计算一维向量卷积 u = [1 1 1]; v = [1 1 0 0 0 ...
- matlab 样本均值,Matlab | Matlab从入门到放弃(4)——样本均值
Matlab | Matlab从入门到放弃(4)--样本均值 Matlab | Matlab从入门到放弃(4)--样本均值 博主github:https://github.com/MichaelBee ...
- matlab 如何捕捉错误,【matlab|matlab运行错误捕捉方法】
『傻大方知识库摘要_matlab|matlab运行错误捕捉方法』需安装VC2005运行库.Matlab错误提示往往以DOS窗口显示,错误提示经常一闪而过,无法查看具体错误信息,可以按照如下操作进行查看 ...
最新文章
- 别一提英特尔就电脑CPU了
- JAVA IO 随笔记录
- yii框架相关知识(转)
- C/Cpp / 设计模式 / 模板模式
- 使用 Pandas GUI 进行数据探索
- 物联网通信协议_自动化机器上的物联网网关的目的是什么?
- php 不是有效的win32,%1不是有效的 win32应用程序(64位转换32位)
- linux curl模拟登录网页
- 搭建spring MVC项目
- 逻辑右移和算术右移区别
- jmeter--正则提取json串中一个大括号对象里指定字段值的的另一个字段的值
- 「大学生学编程系列」第六篇:如何学习C语言?
- [JAVA] TicTacToe实现Socket通信(一)
- 视觉SLAM十四讲学习笔记——第五讲--相机与图像
- rabbitmq官方文档
- SiO2 介孔二氧化硅纳米颗粒的明胶包裹/二氧化硅杂化凝胶固定化醇脱氢酶/白蛋白和壳聚糖包裹的二氧化硅微球/二氧化硅包覆的量子点荧光编码微球
- oracle sql 查询全年日期,oracle下sql创建指定年份全年日期表(区分工作日)
- 分布式机器学习(下)-联邦学习
- p39最大子数组问题o(lgn)
- 火车售票系统(设计模式分析)
热门文章
- GB28181实现对安防摄像头的直播回放控制
- 如何实现可多人协作的“在线excel”系统?
- 白泽四足机器人Opencat玩法之——校准关节和陀螺仪
- CollapsingToolbarLayout用法详解(简洁易懂)
- stm32使用XR20M1172详细攻略·SPI转UART串口
- java里什么是注释,全面解析Java中的注解与注释
- 40+个工业检测数据集
- TensorRT | 入门篇
- Android条形码带数字,android – 使用条形码数字获取名称,价格等产品信息
- 在线教育数据分析实战项目案例