Revision [1689]

Last edited on 2011-07-27 04:31:08 by IanA
Additions:
Save it as ##calibrateLuminance.m##. To pass arguments at startup, pass it a structure of property-value pairs; by default it will run in automatic mode.
mycal = calibrateLuminance(struct('nMeasures',25)); %lets measure 25 luminance steps
Deletions:
To pass arguments at startup, pass it a structure of property-value pairs; by default it will run in automatic mode.
As it is a class object I use it as follows:
mycal = calibrateLuminance(struct('nMeasures',25));


Revision [1688]

Edited on 2011-07-27 04:28:43 by IanA [added info on some code to use the ColorCal]
Additions:
##""ColorCal2.m""## is the PTB matfile interface. It returns XYZ values which are easy to convert into xyY or other colour spaces as required. IanA has a version of ##""CalibrateMonitorPhotometer.m""## adapted to use the ColorCalII. You can download it from:
https://gist.github.com/1106683
To pass arguments at startup, pass it a structure of property-value pairs; by default it will run in automatic mode.
As it is a class object I use it as follows:
%%(matlab)
mycal = calibrateLuminance(struct('nMeasures',25));
%%
This will instruct you if you need to perform a zero calibration (you should do if you've just plugged the ColorCalII in), and then ask you to place it in front of the monitor to begin. It will then measure nMeasures steps of luminance, it is designed to work in the o - 1 range using ##PsychImaging('AddTask', 'General', 'NormalizedHighresColorRange');##. It will fit a gamma function and several standard curve fit functions and generate gamma tables for each. It will ask you for comments (you should enter the monitor identifier and anything else of interest), and then generates a plot of each model fit and the residuals for each. The mycal object now contains the values and should be saved in a MAT file as the calibration. When you need it, load the mycal object and create the gamma table using the appropriate model:
%%(matlab)
load(mycal.mat)
mycal.choice = 1 %lets select the gamma fit
gTmp = repmat(mycal.gammaTable{mycal.choice},1,3);
Screen('LoadNormalizedGammaTable', theScreen, gTmp);
%%
Deletions:
##""ColorCal2.m""## is the PTB matfile interface. It returns XYZ values which are easy to convert into xyY or other colour spaces as required. IanA has a version of ##""CalibrateMonitorPhotometer.m""## adapted to use the ColorCalII and a GUI to control the ColorCalII. Please contact him for more details.


Revision [1665]

Edited on 2011-02-11 09:43:23 by IanA [added info on some code to use the ColorCal]
Additions:
##""ColorCal2.m""## is the PTB matfile interface. It returns XYZ values which are easy to convert into xyY or other colour spaces as required. IanA has a version of ##""CalibrateMonitorPhotometer.m""## adapted to use the ColorCalII and a GUI to control the ColorCalII. Please contact him for more details.
Deletions:
ColorCal2.m is the PTB matfile interface. It returns XYZ values which are easy to convert into xyY or other colour spaces as required. IanA has a version of CalibrateMonitorPhotometer.m adapted to use the ColorCalII and a GUI to control the ColorCalII. Please contact him for more details.


Revision [1664]

Edited on 2011-02-11 09:39:35 by IanA [added info on some code to use the ColorCal]
Additions:
===ColorCalII Colorimeter===
ColorCal2.m is the PTB matfile interface. It returns XYZ values which are easy to convert into xyY or other colour spaces as required. IanA has a version of CalibrateMonitorPhotometer.m adapted to use the ColorCalII and a GUI to control the ColorCalII. Please contact him for more details.
Deletions:
===ColorCal II===
ColorCal2.m is the PTB matfile interface. IanA has a version of CalibrateMonitorPhotometer.m adapted to use the ColorCalII and a GUI to control the ColorCalII. Please contact him for more details.


Revision [1663]

Edited on 2011-02-11 09:38:34 by IanA [added info on some code to use the ColorCal]
Additions:
ColorCal2.m is the PTB matfile interface. IanA has a version of CalibrateMonitorPhotometer.m adapted to use the ColorCalII and a GUI to control the ColorCalII. Please contact him for more details.


Revision [1603]

The oldest known version of this page was created on 2010-09-14 15:00:21 by IanA [added info on some code to use the ColorCal]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki