Hi,

Reinhard Kotucha writes:

> [...]
> I could probably improve the results if anybody tells me what these
> values mean and how to apply them:
>
>   FilmMatR    1.4234   -0.3230    0.0061   -29.7088;
>   FilmMatG    0.0600    0.9677    0.0719   -31.3147;
>   FilmMatB    0.1562   -0.5104    1.4530   -28.9059;

I'm not sure about the rightmost column but this is a color correction
matrix.  You apply it on the incoming (or gamma corrected?) RGB values
via matrix multiplication like so

 R' = 1.4234 * R + -0.3230 * G + 0.0061 * B + -29.7088
 G' = 0.0600 * R +  0.9677 * G + 0.0719 * B + -31.3147
 B' = 0.1562 * R + -0.5104 * G + 1.4530 * B + -28.9059

R, G, B are the values before correction, R', G' and B' the ones after.
You may have to clamp the results into the [0,255] range (assuming 8bit
samples).

Hope this helps,
--
Olaf Meeuwissen, LPIC-2            FSF Associate Member since 2004-01-27
 GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13  F43E B8A4 A88A F84A 2DD9
 Support Free Software                        https://my.fsf.org/donate
 Join the Free Software Foundation              https://my.fsf.org/join

-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
             to sane-devel-requ...@lists.alioth.debian.org

Reply via email to