powered by
Generate single sinusoid patch
generateSinusoid(img_size, cycles, angle, phase, contrast)
The sinusoid image with size img_size.
img_size
Integer specifying size of sinusoid patch in number of pixels.
Integer specifying number of cycles sinusoid should span.
Value specifying the angle (rotation) of the sinusoid.
Value specifying phase of sinusoid.
Value between -1.0 and 1.0 specifying contrast of sinusoid.
generateSinusoid(512, 2, 90, pi/2, 1.0)
Run the code above in your browser using DataLab