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
mycal = calibrateLuminance(struct('nMeasures',25)); %lets measure 25 luminance steps
Deletions:
As it is a class object I use it as follows:
mycal = calibrateLuminance(struct('nMeasures',25));
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);
%%
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:
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:
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.
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. 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.
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.