I’m using the CreateProceduralSineGrating to generate a moving set of sinusoidal gratings with a contrast of 100. I’m wondering if there is a way to record the activity of each pixel on the monitor displaying the gratings, either by recording the contrast level, the brightness level, or the color value. Basically, to get a set of matrices of all pixel values across the duration of the gratings.
Do you mean you want to capture the image sent to the screen, or a capture of the actual screen as displayed to the subject? The latter would require a video camera or so. For the former, look into ImagingStereoDemo, which shows how to capture the screen and write it as a movie. Writing as a movie, depending on codec settings, does cause compression artifacts, which you may not want. Alternatively, you can capture each frame yourself with Screen(‘GetImage’)
1 Like
Oh that’s perfect! Thank you very much!