head>
Clinical Grating & Gabor Generator - Dr Grant Hannaford
AAOO / Dr Grant Hannaford – Clinical Grating & Gabor Generator
Full-field pattern gratings and cogsci-style Gabor patches, calibrated in cycles/degree for a given screen and viewing distance.
Measure with a ruler (visible display area).
Horizontal resolution from display settings.
e.g. 400 mm = 40 cm (typical near distance).
2–8 c/deg: typical “pattern glare” range.
Angle of bars; 90° ≈ vertical bars.
Shifts pattern along its axis.
1 = full Colour 1/2; 0 = uniform mid-tone.
Gabor uses the cogsci.nl generator logic with a chosen patch diameter.
For Gabor, any of these envelopes can be used (Gaussian standard deviation below).
σ for Gaussian envelope, used in both full-field and Gabor modes when envelope = Gaussian.
Values below are interpreted as pixels. Select millimetres to specify physical size.
Width
Height
(unlocked)
Currently treated as pixels. Change units using “Canvas size units”.
Horizontal FOV
Vertical FOV
When FOV is locked, canvas width/height are derived from these degrees and your px/deg calibration, overriding the size inputs.
Contrast scales the difference between Colour 1 and 2 around their mid-tone; background is unaffected.
Used only when waveform = Gabor. Patch is drawn centred in the canvas.
Presets set: square-wave, contrast = 1.0, vertical bars (90°), and the specified spatial frequency.
Settings update automatically every time you draw a new stimulus. The PNG download captures the current canvas.
Clinical note: ensure the subject sits at the specified viewing distance with no browser zoom or OS scaling changes. For pattern glare, mid spatial frequencies (~3 c/deg) and large field size are typically the most provocative.
