摘要 |
One embodiment of the present invention provides a system that generates a set of color-toning curves which can be used for color toning (or casting) a monochrome or color image. During operation, the system receives a first set of color-toning parameters for shadow regions, a second set of color-toning parameters for highlight regions, and an invariance property which needs to be maintained during color toning. The color-toning parameters specify the color that is to be applied to the shadows and highlights. Next, the system computes a set of color-toning-curve values and a set of color-toning-curve slopes using the first set of color-toning parameters, the second set of color-toning parameters, and the invariance property. The system then generates the set of color-toning curves using the set of color-toning-curve values and the set of color-toning-curve slopes. An important aspect of the present invention is that it can generate the color-toning curves simply based on the user specified color tones for the shadow and highlight regions.
|