GithubHelp home page GithubHelp logo

imclab / color_transfer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jrosebr1/color_transfer

0.0 2.0 0.0 3.09 MB

Performs color transfer between two images. Loosely based on the "Color Transfer between Images" paper by Reinhard et al., 2001.

Home Page: http://www.pyimagesearch.com/2014/06/30/super-fast-color-transfer-images/

License: MIT License

Python 100.00%

color_transfer's Introduction

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 Autumn and Fallingwater screenshot

$ python example.py --source images/woods.jpg --target images/storm.jpg Woods and Storm screenshot

$ python example.py --source images/ocean_sunset.jpg --target images/ocean_day.jpg Sunset and Ocean screenshot

color_transfer's People

Contributors

jrosebr1 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.