I have a simple experiment built in the coder in psychopy - where I’m presenting garbor patches with different shapes ( eg. circle, square, etc) on a gray background/screen.
I need to find a way to obtain the mean luminance of my backgroud screen (window) , specified below, and also the mean luminance of my stimuli being drawn in the screen. All this so I can ultimately change or match the luminance of the background screen with that of the stimuli.
Hopefully my problem makes sense, I’m a little stuck as to where to start. Any help/suggestions greatly appreciated!
win = visual.Window(size=(1680, 1050), fullscr=False, screen=0, allowGUI=False, allowStencil=False,
monitor=‘G89’, color=[0.3,0.3,0.3], colorSpace=‘rgb’, units=‘deg’)
#Garbor Patch stimuli example
myGratingLeft= visual.GratingStim(win, tex=‘sin’, sf=[0.03,0], texRes=256, mask= polyShapeLeft, units=‘pix’,contrast= 0.5, size=masksizeLeft, pos=[-1.7, 0])