Learn R Programming

rcicr (version 0.3.4.1)

generateGabor: 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

Run this code
generateSinusoid(512, 2, 90, pi/2, 1.0)

Run the code above in your browser using DataLab