# Parameters for Gabor patch in comparision to Matlab

436 views
We would like to create 2 types of Gabor stimuli, one with a spatial frequency of 6cpd and one with a spatial frequency of 1cpd. In both cases, the sigma of the Gabor should be equal to the wavelength (so sigma of the gabor = 1/spatial frequency), meaning that increasing the spatial frequency the size of the stimulus decreases.

In EventIDE the codification of spatial frequency and gaussian spread is a bit different, specifically because the size of the stimulus influences the spatial frequency where in Matlab the sf remains constant.

Can you tell us which are the Gabor parameters in EventIDE that could lead to the stimulus we want, so 1cpd with sigma = lambda and 6cpd with sigma = lambda?

answered Apr 9, 2016 by (13,380 points)

EventIDE treats all Gabor parameters relatively to the normalized size of the patch. If you set the ‘Grating Frequency’ to 6 and the element size to 1 dva (the angular size of the viewport on the screen), then you have 6cpd physically.  If you increase the patch size to 6 dva without changing the gabor parameters, the physical frequency will be 1cpd. Thus, the physical spatial frequency can be calculated as:

Freq=GaborFrequency/GaborSize.aWidth;

You defined the physical sigma in dva as:

Sigma=1/Freq=1/(GaborFrequency/ GaborSize.aWidth)= GaborSize.aWidth/GaborFrequency;

Since the EventIDE sigma (Gaussian Spead property) is also normalized to the patch size, the reverse conversion is necessary to adjust the property in EventIDE: 