Home

Awesome

Color Transfer

Color transfer is a practical method to change the appearance of a source image according to the color patternof a target image.<br> This program is the implementation of the paper Color Transfer between Images by Erik Reinhard, Michael Ashikhmin, Bruce Gooch and Peter Shirley.

Features

<img src="https://i.imgur.com/2bFZvDi.png" width="400" height="60">

Install Packages

pip install numpy
pip install opencv-python

If you want to create EXE file after programming, also install this:

pip install pyinstaller

Run the program

Put 6 source picture and 6 target picture inside the source_and_target folder, then execute the code:

python color_transfer.py

After that, your can find 6 result picture inside result folder.

Execute following instruction to create EXE file of this program:

pyinstaller -F color_transfer.py

Example

Source / Target / Result

<p float="left"> <img src="https://i.imgur.com/UqbFy34.jpg" width="250" height="170"> <img src="https://i.imgur.com/piirZXC.png" width="250" height="170"> <img src="https://i.imgur.com/zEb47kZ.jpg" width="250" height="170"> </p> <br> <p float="left"> <img src="https://i.imgur.com/M1zPrJq.jpg" width="250" height="170"> <img src="https://i.imgur.com/O62ubGC.jpg" width="250" height="170"> <img src="https://i.imgur.com/XuzTKdf.jpg" width="250" height="170"> </p>

References