Home

Awesome

Color-Transfer-for-Image-Harmonization

Training deep image harmonization network requires abundant pairs of composite images and harmonized images, which are very hard to acquire in practice. An achievable approach is adjusting the foreground of real images to produce synthetic composite images, leading to pairs of synthetic composite images and real images. Here, we summarize different color transfer strategies which could be used to adjust the foregrounds of real images.

Traditional Color Transfer Methods

To generate synthesized composite images, traditional color transfer methods can be adopted to transfer color information from reference images to real images. We categorize previous color transfer methods into four groups based on parametric/non-parametric and correlated/decorrelated color space, and select one representative method from each group. We provide the implementation of the following four representative methods specialized for foreground color transfer in this repository.

Look-Up Table (LUT) based Methods

Look-Up Table (LUT) is commonly used in image processing. We collect 100 LUTs from public websites and release the script of applying LUT to foreground in this repository.

Color Checker based Methods

For the images with illumination information recorded by color checker, we can first convert its foreground to the standard illumination condition, and then convert it to another illumination condition, arriving at a synthetic composite image. The related codes can be found here.

Learnable Color Transfer Methods

Based on input real image and foreground mask, we can train a model to predict plausible color transfer for the foreground region to produce synthetic composite images. The related codes can be found here.