>   - 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.

Cheers,
Rafael

P.S.: The work to support exif is going fine :-)

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

Reply via email to