Gamma Correction
by Angus Dorbie


Example 1:

/* build up LUT (it's faster this way) */
for(i = 0; i< 256; i++)
    LUT[i] = (unsigned char) (255.0 * pow((i/255.0), gamma));







1


