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 版本兼容性
平台兼容性
Windows macOS Linux类别
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!| 版本 | 已发布 | 发行说明 | |
|---|---|---|---|
| 1.0.0.0 |
