Miscellaneous code (use at your own risk!):

If you find any of this useful, please send a quick email & let me know.

Matlab:

These are outdated, I recommend you read this recent paper.

rgb2lms.m

lms2rgb.m

im2LMS.m

convertRGB.m

C:

getwinlut.c getwinlut.rc GetWinLUT.exe - saves hardware gamma ramps to a tab-delimited file "oldluttable.txt", also reads new ramps from "newluttable.txt" and writes those gamma ramps to hardware