getGaborKernel: Gabor Filter Kernels

View source: R/filters.R

getGaborKernelR Documentation

Gabor Filter Kernels

Description

getGaborKernel is a convenience function to create Gabor kernels that can be used to filter images with filter2D.

Usage

getGaborKernel(
  width = 31,
  height = 31,
  sigma = 5,
  theta = pi,
  lambda = 31,
  gamma = 5,
  psi = 0
)

Arguments

width

The width in pixels of the kernel (default: 31).

height

The height in pixels of the kernel (default: 31).

sigma

The standard deviation of the Gaussian envelope (default: 5).

theta

The orientation of the normal to the parallel stripes of a Gabor function (default: pi).

lambda

The wavelength of the sinusoidal factor (default: 31).

gamma

The spatial aspect ratio (default: 5).

psi

A phase offset (default: 0).

Value

A matrix of Gabor coefficients.

Note

For more details about Gabor filter equations and parameters, see: Gabor filter.

Author(s)

Simon Garnier, garnier@njit.edu

See Also

filter2D

Examples

getGaborKernel()


swarm-lab/Rvision documentation built on Feb. 7, 2024, 4:59 a.m.