# Gabor滤波器

Gabor滤波器是一种线性图像滤波器，其核是由高斯包络调制的正弦平面波；用它与图像卷积，可测量每个局部邻域中某一特定方向与[空间频率](https://www.edgepedia.org/zh/spatial-frequency)的强度。它得名于[丹尼斯·加博](https://www.edgepedia.org/zh/dennis-gabor)（Dennis Gabor），其《通信理论》提出了该二维滤波器所推广的一维基本函数。<sup>[1](https://www.its.caltech.edu/~matilde/GaborLocalization.pdf)</sup> 由于核具有带通和方向选择性，Gabor滤波器组可产生局部纹理、方向和频率特征；近三十年来，它们一直是纹理分析、人脸识别、虹膜识别和指纹匹配中的标准特征提取器。<sup>[2](https://webpages.tuni.fi/vision/public_data/publications/ipta2012.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 核 | 高斯包络与复正弦的乘积；实部和虚部是处于正交关系的余弦型与正弦型滤波器<sup>[3](https://visionbook.mit.edu/spatial_filter_sets.html)</sup> |
| 频率行为 | 其傅里叶变换是平移至中心频率的高斯函数，因此滤波器具有方向选择性和带通特性<sup>[3](https://visionbook.mit.edu/spatial_filter_sets.html)</sup> |
| 主要参数 | 波长λ、方向θ、相位ψ、包络尺度σ和纵横比γ<sup>[4](https://juliaimages.org/ImageFiltering.jl/previews/PR235/demos/filters/gabor_filter/)</sup> |
| 标准滤波器组网格 | 中心频率按倍频程间隔，方向按线性间隔<sup>[2](https://webpages.tuni.fi/vision/public_data/publications/ipta2012.pdf)</sup> |
| 生物学吻合度 | 所测猫简单细胞感受野中，97%在统计上与二维Gabor函数的奇对称或偶对称部分无法区分<sup>[1](https://www.its.caltech.edu/~matilde/GaborLocalization.pdf)</sup> |
| 纹理性能 | Gabor能量特征给出的平均Fisher聚类可分性准则为6.33，最差情况为2.35（聚类重叠低于2.5%）<sup>[5](https://pure.rug.nl/ws/files/3063860/2002IEEETIPGrigorescuS.pdf)</sup> |
| 旗舰应用 | 基于Gabor的虹膜码在综述文献中被称为虹膜识别的黄金标准<sup>[2](https://webpages.tuni.fi/vision/public_data/publications/ipta2012.pdf)</sup> |

## 工作原理

在一种常见参数化中，复值核为

\[ g(x,y) = \exp\left(-\frac{x'^{2} + \gamma^{2} y'^{2}}{2\sigma^{2}}\right) \exp\left(i\left(2\pi\frac{x'}{\lambda} + \psi\right)\right), \]

其中\( x' \)和\( y' \)是旋转了方向角θ后的坐标。<sup>[4](https://juliaimages.org/ImageFiltering.jl/previews/PR235/demos/filters/gabor_filter/)</sup> 一种等价的归一化形式是用高斯函数\( \exp(-(x^{2}+y^{2})/2\sigma^{2}) \)乘以\( \exp(j(u_{0} \cdot x+v_{0} \cdot y)) \)。<sup>[3](https://visionbook.mit.edu/spatial_filter_sets.html)</sup> 波长λ决定正弦载波的空间周期，θ选择条纹方向，ψ平移相位，σ控制包络扩展<sup>[4](https://juliaimages.org/ImageFiltering.jl/previews/PR235/demos/filters/gabor_filter/)</sup>；γ（纵横比）沿一个轴拉伸支撑域，当\( \gamma = 1 \)时支撑域为圆形。<sup>[6](https://documentation.euresys.com/Products/Open_eVision/Open_eVision/en-us/Content/03_Using/2_General_Purpose/1_EasyImage/Gabor_Filter.htm)</sup>

σ决定空间定位与频率定位之间的权衡：σ大则空间范围大、频带窄，σ小则相反。<sup>[3](https://visionbook.mit.edu/spatial_filter_sets.html)</sup> 以倍频程表示的半响应频率带宽\( b \)由比值\( \sigma/\lambda \)给出：

\[ b = \log_{2}\frac{\frac{\sigma}{\lambda}\pi + \sqrt{\frac{\ln 2}{2}}}{\frac{\sigma}{\lambda}\pi - \sqrt{\frac{\ln 2}{2}}} \].<sup>[4](https://juliaimages.org/ImageFiltering.jl/previews/PR235/demos/filters/gabor_filter/)</sup> 在傅里叶域中，核是平移至中心频率\( (u_{0}, v_{0}) \)的高斯函数，因此滤波相当于有方向的带通提取。<sup>[3](https://visionbook.mit.edu/spatial_filter_sets.html)</sup> Gabor函数不能构成完备正交基，因此该变换一般不能仅通过反转其分析过程直接求逆；但如果其Gabor系统满足框架条件，则可用对偶框架精确重构。<sup>[7](https://staff.utia.cas.cz/sroubekf/papers/gabor_07.pdf)</sup><sup> • </sup><sup>[28](https://pmc.ncbi.nlm.nih.gov/articles/PMC3257872/)</sup>

20世纪80年代初，若干研究者提出用高斯调制正弦波作为视觉皮层简单细胞感受野的模型。<sup>[1](https://www.its.caltech.edu/~matilde/GaborLocalization.pdf)</sup> 道格曼（Daugman）1985年的论文发展了这一二维滤波器族，表明其在空间、空间频率和方向上的联合不确定性可达到理论下界，并提出证据表明简单细胞感受野剖面可由该族成员很好地描述。<sup>[8](https://doi.org/10.1364/josaa.2.001160)</sup> 这种类比是定量的，但并不完美：斯托克（Stork）与威尔逊（Wilson）（1990）指出，分别取偶对称和奇对称Gabor部分并不像人们普遍认为的那样使联合不确定性最小，这削弱了Gabor形式具有独特优越性的论点。<sup>[9](http://www.cse.yorku.ca/~kosta/CompVis_Notes/gabor_filters.pdf)</sup> 相邻简单细胞对处于正交相位，这启发了能量机制：将一对正交滤波器的输出平方后相加。<sup>[10](https://mplab.ucsd.edu/75/media/gabor.pdf)</sup>

## 实现方法

**选择参数网格。** 标准滤波器组以指数（倍频程）间隔采样中心频率，\( f_{m} = k^{-m} f_{\max} \)，方向则线性采样。<sup>[2](https://webpages.tuni.fi/vision/public_data/publications/ipta2012.pdf)</sup> 一种广泛使用的纹理分析配置采用实Gabor滤波器，频率带宽为一个倍频程，中心频率间隔为一个倍频程，角度带宽和间隔均为30度。<sup>[11](http://www.eng.uwaterloo.ca/~dclausi/Papers/Published%202000/Clausi%20-%20Gabor%20parameters%20-%20Pattern%20Recognition%202000.pdf)</sup> 锐度参数是主要的选择难题，且取决于应用。<sup>[12](https://webpages.tuni.fi/vision/public_data/publications/IEEETIP2006_accepted.pdf)</sup>

**滤波并组装特征。** 一个完整示例流程以45度为步长在0到135度之间采样方向，并以2的幂次采样波长，计算Gabor幅值响应（常称为Gabor能量），用σ与波长成正比的高斯函数平滑每个幅值图，附加空间位置图，归一化，再用k均值聚类；该示例为每个像素产生24个Gabor特征加2个空间特征。<sup>[13](https://www.mathworks.com/help/images/texture-segmentation-using-gabor-filters.html)</sup>

**实现成本。** 对于小核，直接空间卷积比基于FFT的卷积更高效；对于大核，经由[卷积定理](https://www.edgepedia.org/zh/convolution-theorem)的FFT途径更快。<sup>[4](https://juliaimages.org/ImageFiltering.jl/previews/PR235/demos/filters/gabor_filter/)</sup> 由于二维（以及三维）Gabor滤波器可由可分离的一维分量构建，卷积复杂度从\( O(k^{2} n^{2}) \)降至\( O(k n^{2}) \)。<sup>[9](http://www.cse.yorku.ca/~kosta/CompVis_Notes/gabor_filters.pdf)</sup>

## 起源

一维基本函数——在时间定位与频率定位之间达到最优折中的高斯调制正弦波——由D. 加博在《通信理论》（1947，《电气工程师学会学报》第1部分）中提出。<sup>[14](https://doi.org/10.1049/ji-1.1947.0015)</sup> 二维视觉皮层滤波器族由约翰·G·道格曼（John G. Daugman）提出（1985，《美国光学学会会刊A辑》），它从这些基本函数导出，并带有涵盖空间、空间频率和方向的不确定性关系。<sup>[8](https://doi.org/10.1364/josaa.2.001160)</sup> 戴维·J·希格（David J. Heeger）使用三维时空Gabor滤波器作为提取图像流的模型（1987，《美国光学学会会刊A辑》）。<sup>[15](https://doi.org/10.1364/josaa.4.001455)</sup> 阿尼尔·K·贾因（Anil K. Jain）和法尔希德·法罗赫尼亚（Farshid Farrokhnia）将Gabor滤波器应用于无监督纹理分割（1991，《模式识别》）。<sup>[16](https://doi.org/10.1016/0031-3203%2891%2990143-s)</sup> J.G. 道格曼通过统计独立性检验引入了基于Gabor的虹膜识别（1993，《[IEEE模式分析与机器智能汇刊](https://www.edgepedia.org/zh/ieee-transactions-on-pattern-analysis-and-machine-intelligence)》）。<sup>[17](https://doi.org/10.1109/34.244676)</sup> M. 拉德斯（M. Lades）及其同事在动态链接架构中引入了Gabor特征束（Gabor jets）（1993，IEEE Transactions on Computers）<sup>[18](https://doi.org/10.1109/12.210173)</sup>；L. 维斯科特（L. Wiskott）、J.-M. 费卢（J.-M. Fellous）、N. 克吕格（N. Krüger）和C. 冯·德·马尔堡（C. von der Malsburg）<sup>[27](https://www.ini.rub.de/PEOPLE/wiskott/Abstracts/WisFelKrue96.html)</sup>将该方法扩展为用于人脸识别的弹性束图匹配（1997，《IEEE模式分析与机器智能汇刊》）。<sup>[19](https://doi.org/10.1109/34.598235)</sup> 托尼·林德伯格（Tony Lindeberg）提出了[Gabor变换](https://www.edgepedia.org/zh/gabor-transform)的一种时间因果、时间递归的类似形式（2024，《IEEE信息论汇刊》）。<sup>[20](https://doi.org/10.1109/tit.2024.3507879)</sup>

## 变体

**Gabor能量。** 将一对正交滤波器的输出平方后相加，得到一种相位不变的能量度量，它是复杂细胞的标准模型，也是大多数纹理特征的基础。<sup>[10](https://mplab.ucsd.edu/75/media/gabor.pdf)</sup>

**Gabor特征束与EBGM。** 动态链接架构引入了Gabor特征束，即图像标志点处滤波器响应组成的向量，后来由弹性束图匹配扩展用于人脸检测和识别。<sup>[2](https://webpages.tuni.fi/vision/public_data/publications/ipta2012.pdf)</sup>

**对数Gabor滤波器。** 它们没有直流分量，并在倍频程尺度上对频域给出相当均匀的覆盖，解决了经典Gabor滤波器的直流和带宽局限；相关构造可实现精确重构，而正交与双正交小波在方向分辨率差和子带间混叠方面存在不足。<sup>[7](https://staff.utia.cas.cz/sroubekf/papers/gabor_07.pdf)</sup><sup> • </sup><sup>[21](https://link.springer.com/article/10.1007/s11263-006-0026-8)</sup>

**弯曲与三维滤波器。** 弯曲Gabor滤波器沿指纹脊线曲率变化，而不是假设脊线为直线<sup>[22](https://ar5iv.labs.arxiv.org/html/1104.4298)</sup>；二维滤波器可直接推广为用于运动分析的x-y-t三维Gabor函数，而可转向正交滤波器将正交对扩展到任意方向偏移。<sup>[3](https://visionbook.mit.edu/spatial_filter_sets.html)</sup>

**神经网络中的Gabor层。** 由于在自然图像上训练的CNN的第一层核与Gabor滤波器相似，Gabor卷积网络和混合Gabor卷积网络在早期层中初始化或固定Gabor核。<sup>[23](http://www.rivas.ai/pdfs/rai2020review.pdf)</sup> Gabor参数（λ、θ、ψ、σ、γ等）可通过反向传播训练，而将第一层特征限制为可学习的Gabor滤波器可实现大幅剪枝。<sup>[24](https://arxiv.org/pdf/2110.15644.pdf)</sup> 可训练的Gabor卷积层可在训练中微调，从而提高对噪声和遮挡的鲁棒性。<sup>[25](https://link.springer.com/article/10.1007/s11263-025-02658-2)</sup>

## 应用

**纹理分割。** 在聚类可分性上，Gabor能量特征比线性Gabor特征和阈值化Gabor特征高一个数量级，平均Fisher准则为6.33，最差情况为2.35；若假设高斯分布，这对应低于2.5%的重叠。<sup>[5](https://pure.rug.nl/ws/files/3063860/2002IEEETIPGrigorescuS.pdf)</sup>

**指纹增强。** 在FVC2004数据库上，采用33×65区域的弯曲Gabor滤波器比采用传统11×11窗口的直线Gabor滤波器取得了更低的等错误率。<sup>[22](https://ar5iv.labs.arxiv.org/html/1104.4298)</sup>

**人脸分析。** 一种使用四个Gabor方向、并在PCA降维特征上采用多项式神经网络的人脸检测器与文献结果相当；将Gabor响应的幅值和相位结合，比仅用幅值表现更好。<sup>[26](https://www.sciencedirect.com/science/article/abs/pii/S0167865505000206)</sup>

**虹膜识别。** 道格曼基于Gabor的虹膜码在综述文献中被称为虹膜识别的黄金标准；Gabor特征在人脸识别和指纹匹配中也属于表现最好的方法之列。<sup>[2](https://webpages.tuni.fi/vision/public_data/publications/ipta2012.pdf)</sup>

## 局限与替代方法

Gabor滤波器不具有尺度不变性或旋转不变性，这是其频率和方向选择性的直接结果，后处理也无法补偿这种敏感性。<sup>[5](https://pure.rug.nl/ws/files/3063860/2002IEEETIPGrigorescuS.pdf)</sup> 它们并非完全带限，因此会出现混叠；在频率测量定位良好的情况下，轻微噪声也可能产生歪曲信号的输出；对特征图进行平滑可显著提高分类和分割精度。<sup>[11](http://www.eng.uwaterloo.ca/~dclausi/Papers/Published%202000/Clausi%20-%20Gabor%20parameters%20-%20Pattern%20Recognition%202000.pdf)</sup> 仅使用实部的原始输出不适合纹理特征提取；基于幅值的特征效果要好得多。<sup>[11](http://www.eng.uwaterloo.ca/~dclausi/Papers/Published%202000/Clausi%20-%20Gabor%20parameters%20-%20Pattern%20Recognition%202000.pdf)</sup> 这些滤波器也不满足精确可移性要求，而近似实现它需要更多滤波器重叠，代价是计算量增加。<sup>[12](https://webpages.tuni.fi/vision/public_data/publications/IEEETIP2006_accepted.pdf)</sup> 该变换的非正交性意味着它不能自求逆；用大σ的Gabor滤波器进行分析近似于全局[傅里叶变换](https://www.edgepedia.org/zh/fourier-transform)。<sup>[3](https://visionbook.mit.edu/spatial_filter_sets.html)</sup><sup> • </sup><sup>[7](https://staff.utia.cas.cz/sroubekf/papers/gabor_07.pdf)</sup>

对数Gabor滤波器和可转向滤波器解决了直流、带宽和可移性问题，而学习得到的CNN滤波器如今在许多流程中取代了固定滤波器组。<sup>[7](https://staff.utia.cas.cz/sroubekf/papers/gabor_07.pdf)</sup><sup> • </sup><sup>[23](http://www.rivas.ai/pdfs/rai2020review.pdf)</sup> 2020年的一篇综述得出结论：没有充分证据表明Gabor滤波器在采用CNN的一般物体识别任务中具有显著优势。<sup>[23](http://www.rivas.ai/pdfs/rai2020review.pdf)</sup> 近期工作使该滤波器在学习系统内部仍具相关性，包括可训练Gabor层<sup>[25](https://link.springer.com/article/10.1007/s11263-025-02658-2)</sup>，以及针对非因果滤波器不适用信号的时间因果、时间递归Gabor变换类似形式。<sup>[20](https://doi.org/10.1109/tit.2024.3507879)</sup>

## References

1. [Gabor Representations (book chapter, Caltech-hosted)](https://www.its.caltech.edu/~matilde/GaborLocalization.pdf)
2. [Gabor Features in Image Analysis (Kamarainen, IPTA 2012)](https://webpages.tuni.fi/vision/public_data/publications/ipta2012.pdf)
3. [Filter Banks – Foundations of Computer Vision (MIT)](https://visionbook.mit.edu/spatial_filter_sets.html)
4. [Gabor filter · ImageFiltering (JuliaImages)](https://juliaimages.org/ImageFiltering.jl/previews/PR235/demos/filters/gabor_filter/)
5. [Comparison of texture features based on Gabor filters (IEEE Trans. Image Processing, 2002)](https://pure.rug.nl/ws/files/3063860/2002IEEETIPGrigorescuS.pdf)
6. [Gabor Filter (Euresys Open eVision documentation)](https://documentation.euresys.com/Products/Open_eVision/Open_eVision/en-us/Content/03_Using/2_General_Purpose/1_EasyImage/Gabor_Filter.htm)
7. [Log-Gabor wavelet transforms (Sroubek et al.)](https://staff.utia.cas.cz/sroubekf/papers/gabor_07.pdf)
8. [John G. Daugman (1985). Uncertainty relation for resolution in space, spatial frequency, and orientation optimized by two-dimensional visual cortical filters. Journal of the Optical Society of America A.](https://doi.org/10.1364/josaa.2.001160)
9. [Gabor filters (K. G. Derpanis, York University, 2007)](http://www.cse.yorku.ca/~kosta/CompVis_Notes/gabor_filters.pdf)
10. [Tutorial on Gabor Filters (MPLab, UCSD)](https://mplab.ucsd.edu/75/media/gabor.pdf)
11. [Clausi & Jernigan, Pattern Recognition 2000, Gabor filter parameters for texture analysis](http://www.eng.uwaterloo.ca/~dclausi/Papers/Published%202000/Clausi%20-%20Gabor%20parameters%20-%20Pattern%20Recognition%202000.pdf)
12. [Invariance properties of Gabor filter-based features – overview and applications (IEEE Trans. Image Processing, 2006)](https://webpages.tuni.fi/vision/public_data/publications/IEEETIP2006_accepted.pdf)
13. [Texture Segmentation Using Gabor Filters (MathWorks example)](https://www.mathworks.com/help/images/texture-segmentation-using-gabor-filters.html)
14. [D. Gabor (1947). Theory of communication. Journal of the Institution of Electrical Engineers, Part 1, General.](https://doi.org/10.1049/ji-1.1947.0015)
15. [David J. Heeger (1987). Model for the extraction of image flow. Journal of the Optical Society of America A.](https://doi.org/10.1364/josaa.4.001455)
16. [Unsupervised texture segmentation using Gabor filters (Pattern Recognition, 1991)](https://doi.org/10.1016/0031-3203%2891%2990143-s)
17. [J.G. Daugman (1993). High confidence visual recognition of persons by a test of statistical independence. IEEE Transactions on Pattern Analysis and Machine Intelligence.](https://doi.org/10.1109/34.244676)
18. [M. Lades and colleagues (1993). Distortion invariant object recognition in the dynamic link architecture. IEEE Transactions on Computers.](https://doi.org/10.1109/12.210173)
19. [L. Wiskott and colleagues (1997). Face recognition by elastic bunch graph matching. IEEE Transactions on Pattern Analysis and Machine Intelligence.](https://doi.org/10.1109/34.598235)
20. [Tony Lindeberg (2024). A Time-Causal and Time-Recursive Analogue of the Gabor Transform. IEEE Transactions on Information Theory.](https://doi.org/10.1109/tit.2024.3507879)
21. [Self-Invertible 2D Log-Gabor Wavelets (International Journal of Computer Vision, 2007)](https://link.springer.com/article/10.1007/s11263-006-0026-8)
22. [Curved Gabor Filters for Fingerprint Image Enhancement](https://ar5iv.labs.arxiv.org/html/1104.4298)
23. [A Review of Convolutional Neural Networks and Gabor Filters in Object Recognition (2020)](http://www.rivas.ai/pdfs/rai2020review.pdf)
24. [Gabor Filter Incorporated CNN](https://arxiv.org/pdf/2110.15644.pdf)
25. [A Lightweight Hybrid Gabor Deep Learning Approach and its Application to Medical Image Classification (IJCV, 2025)](https://link.springer.com/article/10.1007/s11263-025-02658-2)
26. [Robust face detection using Gabor filter features (Huang, Shimizu & Kobatake, Pattern Recognition Letters)](https://www.sciencedirect.com/science/article/abs/pii/S0167865505000206)
27. [WisFelKrue96 (ini.rub.de)](https://www.ini.rub.de/PEOPLE/wiskott/Abstracts/WisFelKrue96.html)
28. [pmc.ncbi.nlm.nih.gov](https://pmc.ncbi.nlm.nih.gov/articles/PMC3257872/)

---
*Initially written Sep 29, 2026 · Reviewed: Sep 30, 2026 · Edited: Sep 30, 2026; Oct 15, 2026; Oct 25, 2026 · Last review: Sep 30, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Language and vision AI › Computer vision › Vision methods and geometry › Low-level image analysis

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/gabor-filter

English original: https://www.edgepedia.org/gabor-filter
