摘要 |
Colors in an image that are selected as a source color can be matched to a selected destination color such that the modification to the image appears natural. Components of a selected destination color having a first luminance and components of a source color having a second luminance are received. A ratio of the second luminance to the first luminance is determined. The product of this ratio and the components of the selected destination color are determined. Values of components of pixels in the image are adjusted according to this determined product. From one perspective, the pixels take on the hue of the destination color, the luminance of the source color and a saturation that depends on the relationship between the source color and destination colors.
|