Patent ID: 8611654

Claim:
A method, comprising: receiving a plurality of digital input images of a same scene, wherein the plurality of digital input images were captured at different exposure settings, and wherein the digital input images comprise corresponding pixel arrays; and generating a new digital image, wherein said generating comprises calculating, for each pixel of the new digital image, a new color value in a first color space, wherein the first color space comprises separate color channels, and wherein said calculating comprises, for each pixel of the new digital image: determining an average color value in the first color space based on averaging, independently for each of the separate color channels, color values of pixels in said corresponding pixel arrays that correspond to the pixel of the new digital image; determining a maximal color saturation value, in a second color space, of pixels in said corresponding pixel arrays that correspond to the pixel of the new digital image; and modifying said average color value in the first color space to increase its corresponding color saturation value in the second color space to equal the determined maximal color saturation value, wherein the modified average color value is the new color value in the first color space for the pixel of the new digital image.