Generate single sinusoid patch

Description

Generate single sinusoid patch

Usage

1
generateSinusoid(img_size, cycles, angle, phase, contrast)

Arguments

img_size

Integer specifying size of sinusoid patch in number of pixels

cycles

Integer specifying number of cycles sinusoid should span

angle

Value specifying the angle (rotation) of the sinusoid

phase

Value specifying phase 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)