Skip to content

Color transfer is a practical method to change the appearance of a source image according to the color pattern of a target image.

Notifications You must be signed in to change notification settings

Ayush979/Colour-Transfer-Using-Mean-and-Variance-Method

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Colour-Transfer-Using-Mean-and-Variance-Method

Color transfer is a practical method to change the appearance of a source image according to the color patternof a target image.

Features

  • Read BMP file (source/target image)
  • Calculate the mean and STD of each channel
  • Implement the RGB color transfer algorithm
    • Convert images from RGB to ℓαβ color space
    • Statistics and color correction

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


About

Color transfer is a practical method to change the appearance of a source image according to the color pattern of a target image.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages