Hello, I am attempting to set the gamma correction for my monitor.
Ideally I would like to manually set each value in the GammaRamp.
Currently I have had no success in altering the gamma Values or setting the gamma ramp.
Example Code:
from psychopy import core, visual, event
from psychopy.monitors import Monitor
import numpy as np
newMon= Monitor(name='test')
gammGrid=np.zeros([4,6])
gammGrid[:, 1:3]=1
#gammGrid=[[0,1, 1,0,0,0],
# [0,1,1,0,0,0],
# [0,1,1,0,0,0],
# [0,1,1,0,0,0]]
#
newMon.setGammGrid(gammGrid)
myWindow=visual.Window([800,600], monitor=newMon)
myGrating= visual.GratingStim(myWindow, sf=0.02, units='pix', size=(300,300))
myGrating.draw()
myWindow.flip()
#Now if I change the values in the gammaGrid
gammGrid[2,1]=0
gammGrid[3,1]=0
newMon.setGammaGrid(gammGrid)
#gammGrid=[[0,1, 1,0,0,0],
# [0,1,1,0,0,0],
# [0,0,1,0,0,0],
# [0,0,0,0,0]]
#
myWindow=visual.Window([800,600], monitor=newMon)
myGrating= visual.GratingStim(myWindow, sf=0.02, units='pix', size=(300,300))
myGrating.draw()
myWindow.flip()
There is no change in the appearance of the stimulus (the gamma Table seems to not
have an affect).
I do not have any Bits++ equipment.
Any suggestions on how to control the lookup table would be helpful.
Thanks!
I’m running on Ubuntu 16.04
Python 2.7
OpenGL 2.1
Graphics Card: ATI Radeon x1950