Dear all,
I want to save the raw pixel representation of my presented stimuli. To make the stimuli, I use GratingStim with the appropriate parameters. After drawing the content to the screen and flipping the window, I would like to extract the matrix representation containing the rgb values for all individual pixels. In psuedo-code something like this:
# Create the variables
window = visual.window(...)
grating = visual.GratingStim(...)
grating.draw()
window.flip()
# And then something like..
image = grating.getPixelValues()
# Or maybe?
image = window.getPixelValues()
This is similar to PsychToolbox’ Screen(window, “GetImage”). How can one achieve this, or is it possible at all in Psychopy?
Many thanks!
Jordy