All Projects → yuki-koyama → unblending

yuki-koyama / unblending

Licence: other
Decomposing an input image into layers via "color unblending"

Programming Languages

C++
36643 projects - #6 most used programming language
CMake
9771 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to unblending

color-console
A lightweight header-only C++ library to bring colors to your Windows console with a very-easy-to-use API.
Stars: ✭ 97 (-22.4%)
Mutual labels:  color
popping-and-locking-vscode
Vivid and well balanced syntax for VS Code.
Stars: ✭ 26 (-79.2%)
Mutual labels:  color
color-picker
A color picker app made in flutter
Stars: ✭ 46 (-63.2%)
Mutual labels:  color
stellarized
✦ paint vim with the stars ✦
Stars: ✭ 70 (-44%)
Mutual labels:  color
node-color-log
⌨️ The more powerful JavaScript logger for NodeJS and browsers ✏️
Stars: ✭ 58 (-53.6%)
Mutual labels:  color
Colorful
CSS colors for use with SwiftUI
Stars: ✭ 23 (-81.6%)
Mutual labels:  color
colored json
Generating colored JSON in Rust
Stars: ✭ 17 (-86.4%)
Mutual labels:  color
colorsys.rs
Lib for modifying colors and converting to other spaces
Stars: ✭ 28 (-77.6%)
Mutual labels:  color
Toast
To use it in PCL or .NetStandard projects write this line of code : CrossToastPopUp.Current.ShowToastMessage("Message");
Stars: ✭ 51 (-59.2%)
Mutual labels:  color
BuenColors
R package of colors for the Buenrostro Lab
Stars: ✭ 53 (-57.6%)
Mutual labels:  color
emojione-color
OpenType-SVG font of EmojiOne 2.3
Stars: ✭ 112 (-10.4%)
Mutual labels:  color
Colorwaver
🎨 An app to detect color palettes in the real world - powered by VisionCamera
Stars: ✭ 365 (+192%)
Mutual labels:  color
utils.js
👷 🔧 zero dependencies vanilla JavaScript utils.
Stars: ✭ 14 (-88.8%)
Mutual labels:  color
przm
🎨 A simple, yet feature rich color picker and manipulator
Stars: ✭ 19 (-84.8%)
Mutual labels:  color
color-extractor
Biancoir is website that provide color extraction from an image with quantization algorithm.
Stars: ✭ 12 (-90.4%)
Mutual labels:  color
colorzero
Another color manipulation library for Python (originally from picamera)
Stars: ✭ 24 (-80.8%)
Mutual labels:  color
texthighlighter
a no dependency typescript npm package for highlighting user selected text
Stars: ✭ 17 (-86.4%)
Mutual labels:  color
react-native-dual
ScrollView, FlatList, SectionList and ListView with dual background
Stars: ✭ 28 (-77.6%)
Mutual labels:  color
ghci-color
colorize ghci output
Stars: ✭ 74 (-40.8%)
Mutual labels:  color
palette
Color palette app for elementary OS
Stars: ✭ 32 (-74.4%)
Mutual labels:  color

Unblending

Ubuntu macOS

Unblending is a C++ library for decomposing a target image into a set of semi-transparent layers associated with advanced color-blend modes (e.g., "multiply" and "color-dodge"). Output layers can be imported to Adobe Photoshop, Adobe After Effects, GIMP, Krita, etc. and are useful for performing complex edits that are otherwise difficult.

An example of image decomposition. Input image courtesy of David Revoy.

  • unblending is a library that provides the main functionality for the use from other programs.
  • unblending-cli is an executable with a command line interface to use the main functionality.
  • unblending-gui is an executable with a graphical user interface to use the main functionality with interactive specification of necessary input parameters.

Publication

Yuki Koyama and Masataka Goto. 2018. Decomposing Images into Layers with Advanced Color Blending. Comput. Graph. Forum 37, 7, pp.397--407 (2018). (a.k.a. Proceedings of Pacific Graphics 2018) DOI: https://doi.org/10.1111/cgf.13577

This library is provided mainly for researchers who want to use or extend the method described in the above paper. We also expect that this library is useful for developers who plan to use the method in their software.

Demo

Unblending Web App: https://unblending.ongaaccel.jp

Dependencies

Prerequisites

Eigen (3.x.x) and Qt (5.x.x) need to be installed beforehand.

macOS

brew install eigen qt@5

Ubuntu

sudo apt install qt5-default libeigen3-dev

Build Using CMake

Unblending is organized using cmake and is built by the following commands:

git clone https://github.com/yuki-koyama/unblending.git --recursive
mkdir build
cd build
cmake ../unblending
make

This process builds a static library (e.g., libunblending.a) and a command line interface (CLI) named unblending-cli.

The CLI can be used by the following command:

./unblending-cli/unblending-cli [-o <output-dir-path>] [-w <target-image-width>] <input-image-path> <layer-infos-path>

The GUI allows you to interactively specify necessary parameters. Currently the GUI is tested on macOS only (pull requests are highly appreciated).

GUI. Input image courtesy of David Revoy.

Build and Run Using Docker

If you use docker, you can easily build the CLI by docker build:

git clone https://github.com/yuki-koyama/unblending.git --recursive
cd unblending
docker build -t unblending-cli:latest .

Then, you can use the CLI by docker run:

docker run --rm --volume $(pwd):/tmp -it unblending-cli:latest [-o <output-dir-path>] [-w <target-image-width>] <input-image-path> <layer-infos-path>

For example, the following command generates results into a sub directory named output:

docker run --rm --volume $(pwd):/tmp -it unblending-cli:latest -o /tmp/output -w 120 /tmp/examples/magic.png /tmp/examples/magic.json

Note: this typically takes around 10--30 seconds with consumer-level laptops.

LayerInfos File Structure

See LayerInfos.md.

Licensing

Unblending is dual-licensed; You may use this software under either LGPLv3 or our commercial (proprietary) license. See the LICENSE files for details.

Contributing

Pull requests are highly welcome. Please be aware that any contribution to this repository will be licensed under the above license condition.

Authors

  • Yuki Koyama
  • Masataka Goto

Copyright

Copyright (c) 2018 National Institute of Advanced Industrial Science and Technology (AIST) - [email protected]

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].