GaborWavelet<T>

Models & Types · AiDotNet.WaveletFunctions

Represents a Gabor wavelet function implementation for time-frequency analysis and signal processing.

Inheritance: WaveletFunctionBase<T> → GaborWavelet<T>

For Beginners

A Gabor wavelet is a special mathematical tool that helps analyze patterns in data.

Think of it like a musical note with a specific pitch and duration:

  • It can detect specific patterns (like frequencies) in your data
  • It’s especially good at finding where in your data a certain pattern occurs
  • It’s widely used in image processing to detect edges and textures

For example, in image recognition, Gabor wavelets can help detect specific features like edges oriented in particular directions, making them useful for tasks like fingerprint recognition, face detection, and texture classification.

How It Works

The Gabor wavelet is a complex wavelet defined as a sinusoidal function multiplied by a Gaussian window. It provides excellent time-frequency localization and is widely used in image processing, computer vision, texture analysis, and various signal processing applications. This implementation supports customization of frequency, bandwidth, and phase parameters.

Example

using AiDotNet.WaveletFunctions;

var wavelet = new GaborWavelet<double>();
double value = wavelet.Calculate(0.5);
Console.WriteLine($"GaborWavelet: psi(0.5) = {value:F4}");

Constructors

Constructor Summary
GaborWavelet(double omega, double sigma, double lambda, double psi) Initializes a new instance of the GaborWavelet class with the specified parameters.

Methods

Method Summary
T Calculate(T x) Calculates the wavelet function value at the specified point.
ValueTuple<Vector<T>, Vector<T>> Decompose(Vector<T> input) Decomposes an input signal into approximation and detail coefficients using the Gabor transform.
Vector<T> GetScalingCoefficients() Gets the scaling coefficients (real part of the Gabor function) used in the wavelet transform.
Vector<T> GetWaveletCoefficients() Gets the wavelet coefficients (imaginary part of the Gabor function) used in the wavelet transform.
Vector<T> Reconstruct(Vector<T> approximation, Vector<T> detail) Reconstructs the original signal from approximation and detail coefficients.