Generate single gabor patch

Share:

Description

Generate single gabor patch

Usage

1
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

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