1 个不稳定版本

使用旧的 Rust 2015

0.1.0 2017 年 10 月 30 日

#139#image-processing

MIT/Apache

26KB
670 代码行

white-balance-rs

Build Status

Rust 实现流行的白平衡方法。

使用方法

这是一个如何使用所有实现的方法应用自动白平衡的示例

$ cargo run -- -i example.jpg -a
Auto white balancing:
	Input: example.jpg (1920x1080)
	Output: gray-world -> example-gray-world.jpg
	Output: retinex -> example-retinex.jpg
	Output: gray-retinex -> example-gray-retinex.jpg

或仅针对灰度世界方法

$ cargo run -- -i example.jpg -m gray-world
Auto white balancing:
	Input: example.jpg (1920x1080)
	Output: gray-world -> example-gray-world.jpg

有关当前接受到的参数的更多信息

$ cargo run -- -h
Automatic white balance for images

USAGE:
    white-balance [FLAGS] [OPTIONS] --input <input>

FLAGS:
    -a, --all        use all methods
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -m, --auto <auto>        white balancing auto
    -i, --input <input>      input image filename
    -o, --output <output>    output image filename

依赖项

~13MB
~84K SLoC