gabor_kernel: Create a gabor filter kernel

View source: R/pictplot.R

gabor_kernelR Documentation

Create a gabor filter kernel

Description

Create a gabor filter kernel

Usage

gabor_kernel(
  ksize = sigma * 6,
  sigma = min(ksize)/6,
  lambd = min(ksize)/4,
  theta = 0,
  psi = 0,
  gamma = 1,
  normalize = TRUE,
  mask = FALSE
)

Arguments

ksize

the size of the gabor kernel. should be odd number (if not, incremented by one).

sigma

the standard deviation of the Gaussian function

lambd

the wavelength of the sinusoidal factor

theta

the orientation of the normal to the parallel stripes of the Gabor function

psi

the phase offset

gamma

the spatial aspect ratio

normalize

if TRUE (default), kernel is normalized (the zero-summing normalization)

mask

if TRUE, circular mask is applied.

Examples

gb = gabor_kernel( ksize = 61 )
plot(gb, rescale = TRUE)
gb = gabor_kernel( ksize = 61, theta = pi/6 )
plot(gb, rescale = TRUE)

tsuda16k/pictplot documentation built on March 1, 2023, 8:44 p.m.