百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
U

unblending

> 编程语言
开源

通过"颜色不混合"将输入图像分解为多层

192 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

通过"颜色不混合"将输入图像分解为多层

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 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C++colorcolor-blendingimageimage-processing

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

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