jrosebr1/color_transfer
关于
在两张图像之间迁移颜色。大致基于 Reinhard 等人 2001 年发表的论文《Color Transfer between Images》。
设计与媒体实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Super fast color transfer between images
The color_transfer package is an OpenCV and Python implementation based (loosely) on Color Transfer between Images [Reinhard et al., 2001] The algorithm itself is extremely efficient (much faster than histogram based methods), requiring only the mean and standard deviation of pixel intensities for each channel in the L*a*b* color space.
For more information, along with a detailed code review, take a look at this post on my blog.
#Requirements
- OpenCV
- NumPy
#Install To install, make sure you have installed NumPy and compiled OpenCV with Python bindings enabled.
From there, there easiest way to install is via pip:
$ pip install color_transfer
#Examples
Below are some examples showing how to run the example.py demo and the associated color transfers between images.
$ python example.py --source images/autumn.jpg --target images/fallingwater.jpg

$ python example.py --source images/woods.jpg --target images/storm.jpg

$ python example.py --source images/ocean_sunset.jpg --target images/ocean_day.jpg

探索相关项目
加载中…