Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
U

unblending

> 编程语言
Open source

Decomposing an input image into layers via "color unblending"

192 stars0 likes1 views
WebsiteGitHub

About

Decomposing an input image into layers via "color unblending"

Unblending

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.

  • 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:

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:

Dependencies

  • cxxopts (included as gitsubmodule)
  • json11 (included as gitsubmodule)
  • NLopt (included as gitsubmodule)
  • nlopt-util (included as gitsubmodule)
  • parallel-util (included as gitsubmodule)
  • timer (included as gitsubmodule)
  • tinycolormap (included as gitsubmodule)
  • Eigen
  • Qt5

Prerequisites

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

macOS

bash
brew install eigen qt@5

Ubuntu

bash
sudo apt install qt5-default libeigen3-dev

Build Using CMake

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

bash
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:

bash
./unblending-cli/unblending-cli [-o ] [-w ]  

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

Build and Run Using Docker

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

bash
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:

bash
docker run --rm --volume $(pwd):/tmp -it unblending-cli:latest [-o ] [-w ]  

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

bash
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) -

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C++colorcolor-blendingimageimage-processing

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言