Byakuren 1.0.1
A theme color extracting library implemented by C.
|
Byakuren is a C library for extracting theme colors from images.
This library has been used in production by a related company for years.
TODO: Implement KD-Tree for color finding.
聖 白蓮(ひじり びゃくれん,Hiziri Byakuren)是系列作品《东方project》中的角色,首次登场于《东方星莲船》。
- 种族:魔法使
- 能力:使用魔法程度的能力(酣畅增强身体能力的)
- 危险度:不明
- 人类友好度:中
- 主要活动场所:命莲寺之类
命莲寺的住持。虽然原本是人类,不过由于常年的修行已经完全超越了人类。现在已经属于人们常说的魔法使了。
虽然已经入了佛门,但是不知道什么原因却被妖怪敬仰着。她从来没有像童话故事中的魔法使那样,念诵着咒语治退妖怪。使用的力量完全是邪恶的,一点都不像是圣人,虽然并没有人目击到她与人类为敌,但其实已彻底成为妖怪的同伴了。
Clone the repository with submodules:
Compile the static library:
After compilation, include byakuren.h
in your project to use the library:
For detailed API usage, refer to the API Documentation section below.
Compile the test binary:
Run the test with a specific algorithm:
Replace ALGORITHM
with octree
, mindiff
, or mix
.
A Node.js-based test helper is available for quick testing without generating .rgb
files manually.
For example:
Use -a all
to test all three algorithms at once.
Here's a brief overview of the main APIs provided by Byakuren. For detailed parameter descriptions and usage, please refer to the full API documentation in the header files.
For full API documentation, including detailed descriptions of parameters and return values, please refer to the following header files:
bkr_common.h
: Common structures and definitionslib/octree.h
: Octree algorithm functionslib/mindiff.h
: Min-diff algorithm functionslib/mix.h
: Mix algorithm functionsContributions are welcome! Please feel free to submit a Pull Request.
「雖然我覺得不怎麼可能有人會關注我」