Improvements in highlight rolloff behavior.

This commit is contained in:
Emil Martinec
2010-10-23 07:44:06 -05:00
parent 0980afc2b6
commit 3f8d4732e3
3 changed files with 10 additions and 10 deletions

View File

@@ -334,6 +334,7 @@ void ImProcFunctions::rgbProc (Image16* working, LabImage* lab, int* tonecurve,
z = CLIPTO(z,0,2*65536-1);
int L = cacheL[y];
//int L = cacheL[tonecurve[y]];//for luminance tone curve, use this (and comment out rgb tonecurves)
lab->L[i][j] = L;
lab->a[i][j] = CLIPC(((cachea[x] - cachea[y]) * chroma_scale) >> 15);
lab->b[i][j] = CLIPC(((cacheb[y] - cacheb[z]) * chroma_scale) >> 15);