摘要 |
A system and method for digital hair coloring is described. A starting image of a subject including a hair region is obtained. At least one foreground selection of the starting image is obtained, the foreground selection including a portion of the hair region. At least one background selection of the starting image excluding the hair region is obtained. A matte defining a calculated foreground area of the starting image is calculated based on the foreground selection and the background selection. A target color distribution based on a target hair color is obtained. A color image is generated by applying a color transformation based on the target color distribution to at least the calculated foreground area of the starting image. An output image is generated from the colored image and the starting image. |