generateGabor: Generate single gabor patch

View source: R/generateGabor.R

generateGaborR Documentation

Generate single gabor patch

Description

Generate single gabor patch

Usage

generateGabor(img_size, cycles, angle, phase, sigma, contrast)

Arguments

img_size

Integer specifying size of gabor patch in number of pixels.

cycles

Integer specifying number of cycles the sinusoid should span.

angle

Value specifying the angle (rotation) of the sinusoid.

phase

Value specifying phase of sinusoid.

sigma

of guassian mask on top of sinusoid.

contrast

Value between -1.0 and 1.0 specifying contrast of sinusoid.

Value

The sinusoid image with size img_size.

Examples

generateSinusoid(512, 2, 90, pi/2, 1.0)

rdotsch/rcicr documentation built on Feb. 5, 2023, 10:15 p.m.