Hi Najib,
Regarding the drifting grating stimulus:
Is size in pixels?
No, position and size are in the same units as other standard stimuli: visual angle in degrees of arc, with the conversion to pixels determined by the width, height, and distance values specified in your setup_variables.xml
file.
Is spatial frequency in cycles per image?
No, it’s in cycles per degree of visual angle.
what about speed, is it speed or is it temporal frequency?
Speed is in degrees of visual angle per second.
How does one manipulate contrast?
If the background is 50% gray (as it is by default), then the alpha_multiplier
parameter determines the contrast. The valid range is 0 to 1.
Can we do multiple and overlapping gratings?
You definitely can do multiple gratings. The drawing code is quite efficient, so performance should be good even with many gratings on screen at once.
You can also overlap gratings, with the (probably significant) caveat that gratings are opaque, so you can’t, say, display a rectangle containing two independent, intermingled gratings. If that’s something you need, then I can update the plugin to do that.
Regarding the random dots stimulus:
we tried to look for some sample random dot motion stimuli, but couldn’t find any on the website. Might have been looking for the wrong thing, but is there a chance you can share some with us?
Sure, you can find several here. Here are the units of the various parameters:
- field_radius, field_center_x, field_center_y, dot_size: visual angle in degrees
- dot_density: number of dots per square degree
- direction: angle in degrees between the velocity vector and the positive x-axis (so 0 is to the right, 90 is straight up, etc.)
- speed: degrees of visual angle per second
- coherence: unitless, range is [0,1]
- lifetime: seconds (the amount of time a given dot is onscreen before being removed and replaced)
- announce_dots: boolean; if true, the dot positions are included in the stimulus announcements that are recorded to the event file
You’ll be the first person (besides me) to test this stimulus, so I’d appreciate any feedback or suggestions you have.
do we need to install a plugin to make these stimuli work?
No, the plugin is bundled with the MWorks nightly build, so the examples should just work.
If you have other questions, please don’t hesitate to ask.
Cheers,
Chris