Methods and apparatus implementing a technique for adjusting the color of
pixels in an image. The technique includes identifying a target region of
pixels in the image that represent an object, the object having a shape
and a predefined set of features; and adjusting the color of one or more
pixels in the target region by an amount determined based on one or more
probability functions and one or more spatial profile functions, each
probability function defining a probability value at each of the one or
more pixels in the target region, the probability value representing the
probability that the pixel corresponds to one or more features of the
object, each spatial profile function being defined based on one or more
spatial properties of the object or one or more of its features.