Velocity Reviews > WB - from Kelvin to RGB

# WB - from Kelvin to RGB

Guest
Posts: n/a

 07-27-2006
Hello !
Anybody know function how can translate
WB Color Temperature in Kelvin to RGB pixels values
for exemple 3000 K = (+4 R) & (-5 G) & (0 B)

kctan
Guest
Posts: n/a

 07-27-2006
you confuse WB with RGB

"Radek D" <(E-Mail Removed)> wrote in message
news:eaam2k\$4et\$(E-Mail Removed)...
> Hello !
> Anybody know function how can translate WB Color Temperature in Kelvin to
> RGB pixels values for exemple 3000 K = (+4 R) & (-5 G) & (0 B)

acl
Guest
Posts: n/a

 07-27-2006

kctan wrote:
> you confuse WB with RGB
>

How is white balancing achieved? By multiplying the each of the R, G
and B channels by a different multiplier.

acl
Guest
Posts: n/a

 07-27-2006

> Hello !
> Anybody know function how can translate
> WB Color Temperature in Kelvin to RGB pixels values
> for exemple 3000 K = (+4 R) & (-5 G) & (0 B)

1) It is a multiplier, ie each channel gets multiplied by a number
2) Even if the raw converter assumed a black body spectral distribution
for the source (ie only the temperature must be specified), we would
also need to know the exact spectral response of the R, G and B filters
for the specific camera under discussion. This may or may not be
standardised between different cameras/sensors; I don't know.

You can find all the answers you ever wanted by reading the source code
of David Coffin's dcraw at
http://www.cybercom.net/~dcoffin/dcraw/

Sorry, but reading C code (even my own) gives me headaches, so I never
read dcraw.c and therefore don't know.

Bart van der Wolf
Guest
Posts: n/a

 07-27-2006

"acl" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) ups.com...
SNIP
> How is white balancing achieved? By multiplying the each of the R, G
> and B channels by a different multiplier.

In linear gamma space, yes.

Bart

Bart van der Wolf
Guest
Posts: n/a

 07-27-2006

"Radek D" <(E-Mail Removed)> wrote in message
news:eaam2k\$4et\$(E-Mail Removed)...
> Hello !
> Anybody know function how can translate WB Color Temperature in
> Kelvin to RGB pixels values for exemple 3000 K = (+4 R) & (-5 G) &
> (0 B)

Possibly more than you catered for, but nevertheless:
<http://www.brucelindbloom.com/Eqn_XYZ_to_T.html>

Bart