Is there a MATLAB function to apply a 1D Gabor filter to an input?

4 ビュー (過去 30 日間)
SNIreaPER
SNIreaPER 2023 年 9 月 7 日
編集済み: Dyuman Joshi 2023 年 9 月 7 日
I am aware that there are some 2D Gabor filters for image analysis - I am looking for a code for it's 1D version. Continuous or discrete are both fine.
  1 件のコメント
Dyuman Joshi
Dyuman Joshi 2023 年 9 月 7 日
編集済み: Dyuman Joshi 2023 年 9 月 7 日
"Is there a MATLAB function to apply a 1D Gabor filter to an input?"
Try searching on File Exchange.

サインインしてコメントする。

回答 (1 件)

Mrutyunjaya Hiremath
Mrutyunjaya Hiremath 2023 年 9 月 7 日
% Parameters
a = 1; % Amplitude
mu = 0; % Mean
sigma = 2; % Standard deviation
f = 1; % Frequency
phi = 0; % Phase offset
N = 100; % Number of points
t = linspace(-10, 10, N); % Discrete time vector
% Gabor signal
gabor_signal = a * exp(-((t - mu).^2) / (2 * sigma^2)) .* cos(2 * pi * f * (t - mu) + phi);
% Plot
figure;
stem(t, gabor_signal);
title('1D Discrete Gabor Filter');
xlabel('Time');
ylabel('Amplitude');

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by