Rafael EspĂ­ndola wrote:
  - for my patch to work i used to compute f = y'/y, and then do
   r' = f*r, g' = f*g, b' = f*b which are linear operations on
   linear color components, because luminance is computed from
   linear components, not gamma corrected ones. So there's some
   kind of discrepency between the pregama and postgamma
   corrections.

I have no experience on this area, but one thing I was considering
trying was using max (r, g, b) instead of Y. For example, if the
curves maps 5  to 10, the pixel (2, 4, 5) would be mapped to (4, 8,
10). This should be applied before gamma.

This transformation is happening on HSV space. It preserves H and S
and maps on V.
I'm gonna leave the curve discussion to Anders Brander - I know too little about it...
Cheers,
Rafael

P.S.: The work to support exif is going fine :-)
Cool, please send a patch when you've got something that works...would like to test it :)

/Anders Kvist

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

Reply via email to