wiener_utils 0.1.0

Crate that contains the utilities for Wiener and the user
Documentation
1
2
3
4
5
6
7
8
9
10
11
use image::io::Reader;
use std::path::Path;

pub fn load(path: &str) -> (image::DynamicImage, i32, i32) {
    let img_data = Reader::open(&Path::new(path)).unwrap().decode().unwrap();

    let width = img_data.width().try_into().unwrap();
    let height = img_data.height().try_into().unwrap();

    return (img_data, width, height);
}