Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 27th, 2012  |  syntax: None  |  size: 0.31 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. for(int i = 0; i < 256 ; i++)
  2.     {
  3.         LUT1[i] = pow(i/255.0,2.2);
  4.         for(int j = 0;j<3;j++)
  5.         {
  6.             for(int k=0;k<3;++k)
  7.             {
  8.                 LUTsRGB[i][j][k] = LUT1[i]*MsRGBfrom[j][k];
  9.                 LUTARGB[i][j][k] = LUT1[i]*MARGBfrom[j][k];
  10.             }
  11.         }
  12.     }