Gabor filter 2D

版本 1.0.0.0 (1.0 KB) 作者: Minh Nguyen
Generate a spatial gabor filter (2D)
825.0 次下载
更新时间 2015/3/2

查看许可证

gabor_filter = gabor2D(w, theta, sigma, size, type)
w : central frequency
theta : angle or orientation (degree)
sigma : sigma value of Gaussian envelope (usually choose = 1/w)
size : size of output filter in pixel (size*size)
type : 'even' or 'odd', default: 'odd';
'even' : real part of gabor filter
'odd' : imaginary part of gabor filter
---------------------------------------------
Example
Assume you want to filter the central frequency 32 of the image size
320*240 with filters size 31x31. It may be:
w = [2 4 8 16 32 64];
w = w/(320/31); % scale central frequency
theta = [0 45 90 135];
sigma = 1./w;
size = 31;
type = 'even';
g = gabor2D(w(5), theta(1), sigma(5), size, type);
showGabor(g);
** showGabor function just visualizes the output of gabor2D.

引用格式

Minh Nguyen (2025). Gabor filter 2D (https://ww2.mathworks.cn/matlabcentral/fileexchange/49888-gabor-filter-2d), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R14
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Filter Banks 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0