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

조회 수: 8 (최근 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 CenterFile Exchange에서 Get 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