4 releases (2 breaking)
0.3.1 | Jan 23, 2022 |
---|---|
0.3.0 | Jan 23, 2022 |
0.2.0 | Jan 16, 2022 |
0.1.0 | Jan 14, 2022 |
#673 in Images
15KB
229 lines
agcwd
A Rust implementation of the AGCWD algorithm.
AGCWD is described in the paper "Efficient Contrast Enhancement Using Adaptive Gamma Correction With Weighting Distribution".
Here is a live demo of enhancing images from your camera in real-time.
Examples
A Rust code snippet to enhance an RGB image:
// An example image containing 2 RGB pixels.
let mut pixels = vec![0, 1, 2, 3, 4, 5];
let agcwd = agcwd::Agcwd::new(0.5);
agcwd.enhance_rgb_image(&mut pixels);
You can apply AGCWD to a PNG image by executing the following command:
$ cargo run --example enhance-png /path/to/image.png --output-path