| Crates.io | image-toolbox |
| lib.rs | image-toolbox |
| version | 0.1.1 |
| created_at | 2019-02-22 19:59:14.359093+00 |
| updated_at | 2019-02-22 20:05:52.66052+00 |
| description | Simple and fast Image processing features library built on top of Piston/Image |
| homepage | https://github.com/Isan-Rivkin/image-toolbox-rs.git |
| repository | https://github.com/Isan-Rivkin/image-toolbox-rs.git |
| max_upload_size | |
| id | 116614 |
| size | 100,394 |
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.
In Cargo.toml
[dependencies]
image-toolbox = "*"
use image_toolbox::{Histogram, load_img};
use image::{DynamicImage};
// load img
let img = load_img("./test/bright_miami.jpg").unwrap();
let histogram = Histogram::new(&img);
println!("{:?}",histogram);
// get the r,g,b probability of some pixel value
let (p_r,p_g,p_b) : (f32,f32,f32) = histogram.probability(200);
use image_toolbox::{load_img,normalize_brightness,save_img};
let img = load_img("./test/bright_miami.jpg").unwrap();
let new_image = normalize_brightness(&img).unwrap();
save_img(&new_image,"./test/result.jpg").unwrap();

