Package psychopy :: Package monitors :: Module calibTools :: Class GammaCalculator
[frames] | no frames]

Class GammaCalculator

source code

Class for managing gamma tables

Parameters:

Then give EITHER "lums" or "gamma":

myTable then generates attributes for gammaVal (if not supplied) and lut_corrected (a gamma corrected lookup table) which can be accessed by;

myTable.gammaTable myTable.gammaVal

Instance Methods
 
__init__(self, inputs=[], lums=[], gammaVal=[], bitsIN=8, bitsOUT=8, eq=1) source code
 
fitGammaFun(self, x, y)
Fits a gamma function to the monitor calibration data.
source code
 
fitGammaErrFun(self, params, x, y, minLum, maxLum)
Provides an error function for fitting gamma function
source code
Method Details

fitGammaFun(self, x, y)

source code 

Fits a gamma function to the monitor calibration data.

Parameters:
-xVals are the monitor look-up-table vals (either 0-255 or 0.0-1.0) -yVals are the measured luminances from a photometer/spectrometer

fitGammaErrFun(self, params, x, y, minLum, maxLum)

source code 

Provides an error function for fitting gamma function

(used by fitGammaFun)