gabor_kernel: Create a gabor filter kernel

Description Usage Arguments Examples

View source: R/utils.R

Description

Create a gabor filter kernel

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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

1
2
3
4
gb = gabor_kernel( ksize = 61 )
plot(gb, rescale = TRUE)
gb = gabor_kernel( ksize = 61, theta = pi/6 )
plot(gb, rescale = TRUE)

tsuda16k/noesis documentation built on Nov. 25, 2020, 10:16 a.m.