GithubHelp home page GithubHelp logo

colorizer's Introduction

colorizer

Implements different methods to transfer colors between images.

Continuation of work on color transferring function for "neural-style". Since it can work alone, maybe someone will find it useful.

Requirements:

License:

Public domain.

Usage:

th colorizer.lua -palette_image "gradients.png" -colorized_image "sausage.jpg" -output_image "yummy.png" -recolor_strength 1 -color_function "lab"

  • -palette_image – image to take colors from;
  • -colorized_image – image to recolor;
  • -output_image – image to save result;
  • -recolor_strength – -N ... 0 ... 1 ... N, new palette strength, from original colors (0) to fully recolored (1);
  • -color_function – color transfer mode, currently present are: chol, pca, sym/mkl, rgb, xyz, lab, lms, hsl, hsl-full, hsl-polar, hsl-polar-full, lab-rgb, chol-pca, chol-sym, exp1.

Experimental, don't expect miracles from it.

Based on Leon Gatys's, ProGamerGov's, Adrian Rosebrock's, François Pitié's, mdfirman's code and different research papers (given in descriptions of functions).

Example:

Example of color transfer

colorizer's People

Contributors

progamergov avatar vakons avatar

Watchers

 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.