Skip to content
项目

chia56028/Color-Transfer-between-Images

在 GitHub 查看

关于

This is the open-source implement the paper "Color Transfer between Images" by Erik Reinhard, Michael Ashikhmin, Bruce Gooch and Peter Shirley.

设计与媒体

这些数字如何统计

可以做什么

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

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Color Transfer

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

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


References

探索相关项目

加载中…