主权项 |
1. A method for changing the appearance of an original image comprising N>1 classes of image elements, the method comprising the steps of:
for each pixel and for at least one subset of the original image:
calculating (S106) N probability values, each probability value defining a probability for the pixel of belonging to a corresponding one of the N classes of image elements,transforming (S108) a color of the pixel by using predetermined color transforms for each of the N classes of image elements and the N probability values for the pixel, and storing a resulting color transformed image as an edited image, wherein the step of transforming the color of the pixel comprises the steps of: calculating a specific color transform to be used for the pixel by, for each class of image elements of the N classes of image elements, multiplying the probability value for the pixel of belonging to the class of image elements with the color transform provided for the class of image elements, and summing the N products of the N multiplications, and transforming the color of the pixel by multiplying an original color of the pixel with the specific color transform for the pixel. |