cognitive science
and more

Gabor patches are sinusoidal gratings, typically with a Gaussian envelope, which are frequently used as stimuli in psychological experiments. Using this page you can easily create and download high quality Gabor patches. As with most topics, you can find out more about Gabor patches on Wikipedia.

In order to generate multiple Gabor patches at once, you can enter multiple values separated by a comma (","). You can download generated stimuli separately or at once as a .zip file. Please note that the script may time out if you generate too many or very large stimuli.

If you are here in the hope of training your eyesight, see this post for a critical discussion of recent claims that visual training with Gabor patches improves vision.

Specify and generate

Orientation
in degrees
Size
in pixels
Envelope
Determines the shape of the patch.
See http://en.wikipedia.org/wiki/Window_function
Gaussian
Linear (triangular)
Cosine (sine)
Hann (raised cosine)
Hamming (raised cosine)
Circular (sharp edge)
Rectangular (no envelope)
Standard deviation
in pixels (only applies to the Gaussian envelope)
Frequency
in cycles/ pixel
Phase
in cycles (0-1)
Background color
RGB values should be in the 0-255 range or negative (-1).
Negative values create a transparent background.
Red: Green: Blue:
Color 1
RGB values should be in the 0-255 range
Red: Green: Blue:
Color 2
RGB values should be in the 0-255 range
Red: Green: Blue:

View and download

Download all patches as a .zip file

Orientation: 45
Size: 96
Envelope: gaussian
Standard deviation: 12
Frequency: 0.1
Phase: 0
Background color: 128, 128, 128
Color 1: 255, 255, 255
Color 2: 0, 0, 0
Download

Source code