image-toolbox-rs
Image Tool Box Written in Rust based on Piston/Image
Quick to start, different and random Image operations. WIP, many more features to be added.
Feel free to contribute and add new features via a Pull Request.
How to use
In Cargo.toml
-toolbox = "*"
image
The histogram struct
use ;
use ;
// load img
let img = load_img.unwrap;
let histogram = new;
println!;
// get the r,g,b probability of some pixel value
let : = histogram.probability;
turn a TOO bright image into normal colors
use ;
let img = load_img.unwrap;
let new_image = normalize_brightness.unwrap;
save_img.unwrap;