DONATE clut.mex for pelli-zhang video attenuator

>Hi there.
>We bought a video attenuator here and we want to use it under Matlab with
>the Psychtoolbox on a
>Mac P4. It seems the way to do it is to compile the c source code, like
>luminance.c , into a MEX
>file which could be directly called by Matlab.
>Is that possible ?
>Thanks.
>
>J.Wu

We don't currently have an elegant set of software for using a
Pelli-Zhang video attenuator. The enclosed files, CLUT.mex and CLUT.m,
allow you to access a LuminanceRecord.h file, as produced by my old
CalibrateLuminance application. This is very old code that I still use,
but which you should consider unsupported, as I'd like to devote any new
effort to implementing a portable solution in pure MATLAB, building on
our existing calibration software in the PsychCal directory.

You can read about the Pelli-Zhang video attenuator at
http://vision.nyu.edu/Tips/Attenuator.html

CalibrateLuminance is included, as a utility, in the VideoToolbox
http://vision.nyu.edu/VideoToolbox/Download.html

Denis Pelli