SSARCandy/Coherent-Line-Drawing
关于
🖼✨ 自动将照片转换为线稿。
设计与媒体实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Coherent Line Drawing
This project implemented a non-photorealistic rendering technique presented by Kang et al, that can automatically generates a line drawing from a photograph. This project provide an easy-to-use, real-time interactive graphic user interface system.

WebGL Version (run in browser)
Live demo — a GPU port of the full pipeline running entirely in the browser, no installation required. Every stage runs as a WebGL2 fragment shader, so all parameters update in real time. See webgl/ for details.
Workflow (Youtube)
Build
Requirement
- C++ 17
- CMake
- OpenCV 4
- WxWidget 3 (not required for cmd application)
- Boost (not required for gui application)
If you prefer C++ 11 version, there is a branch called cpp11, the function is equivalent.
It should work fine in Windows/Linux/MacOS.
I provided some scripts that can use in Linux:
# Usage: build.sh [options]
# Options:
# -c, --clean Clean build
# -d, --debug Build with debug mode
# -j, --jobs Use N cores to build
$ ./build.sh
# Usage: linter.sh [options]
# Check code style
# Options:
# -i In-place format
$ ./linter.sh
Command Line Version
I provide another command line application that can directly use without graphic interface, the entry point is src/cmd.cpp. The options is list as following, also you can refer to ./test.sh to see how to use:
# Coherent-Line-Drawing Options:
# -h [ --help ] Help message
# -s [ --src ] arg Source image path
# -o [ --output ] arg Output image path
# --ETF_kernel arg (=5) ETF kernel size
# --ETF_iter arg (=1) Refining n times ETF
# --CLD_iter arg (=1) Iterate n times FDoG
# --sigma_c arg (=1) Line width
# --sigma_m arg (=3) Degree of coherence
# --rho arg (=0.997) Noise
# --tau arg (=0.8) Thresholding
Pre-Build GUI Version
You can download pre-build version at here.
Including Windows and macOS versions.
Screenshots

探索相关项目
加载中…
