Edouard Gomez ([EMAIL PROTECTED]) wrote:

> I played with the C renderer and modifying more like:
> more_magic()
> {
>       float curve[65536];
>       ...
>       output = tranform_rgb_as_usual(input);
>  
>       luma = cumpute_luma(output); /* I tried input aswell */
>  
>       output.r += rfactor*(luma_curve[luma] - luma);
>       output.g += gfactor*(luma_curve[luma] - luma);
>       output.b += bfactor*(luma_curve[luma] - luma);
>       ...
> }

Okay today i tried as you suggested:
more_magic()
{
        int curve[65536];
        ...
        output = tranform_rgb_as_usual(input);
 
        orgluma = cumpute_luma(output); /* I tried input aswell */
        dstluma = curve[orgluma];
        a = dstluma / orgluma;
 
        output.r *= a;
        output.g *= a;
        output.b *= a;
        ...
}

This didn't do the trick either.

Ideas

-- 
Edouard Gomez

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

Reply via email to