Anders Kvist ([EMAIL PROTECTED]) wrote:
> I don't know much about curves and what is right or wrong, but i think it
> do need to have gamma correction before curves...if it's done this way, i 
> believe the autotools will work with this patch...

So if it had to be done after curves, a pseudo code for each pixel would
would be:

(rgb) = matrix*(rgb)
clamp65535(rgb)
(rgb) = table16[rgb]
y = lum(rgb)
multiplier = lumtable[y]
(rgb) = multiplier*(rgb)
clamp65535(rgb)
if 8bit_output
  dest = table8[rgb]
else
  dest = (rgb)

Is it looking right to you. Because for me it's not clear what table16
and table8 hold. table16 seems to be linear because it's based on a
gamma nd value that is then 1/gamma'ed...

-- 
Edouard Gomez

_______________________________________________
Rawstudio-dev mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-dev

Reply via email to