Patent ID: 7990392

Claim:
A machine-implemented method for white-balancing a digital image using a mapping that maps digital colors into digital colors, the method comprising: obtaining, by the machine, information on a value W out of the mapping on a reference digital color W in lying in a visible gamut but not on the visible gamut's boundary, the mapping of W in into W out being to adapt W in to viewing conditions different from those in the image, wherein the mapping maps digital colors into digital colors and therefore each value of the mapping (including the value W out ) is a digital color; for at least one digital color S in in the digital image such that S in is not a multiple of the reference digital color W in and is not on the visible gamut's boundary, determining, by the machine, a value S out of said mapping on the digital color S in , wherein determining S out comprises: determining, by the machine, a digital color P in on the visible gamut's boundary from the digital color S in ; and determining, by the machine, the value S out from said information on the value W out and from a value P out of said mapping on the digital color P in .