Module imgproc_rs::io[][src]

A module for image reading/writing

Examples

// Read an image from a path
let img = imgproc_rs::io::read("path/to/image.png")?;

// Print the image information
println!("{}", img.info());

// Write the image to a path as a PNG
imgproc_rs::io::write(&img, "path/to/save_image.png")?;

Functions

read

Reads an image file into an Image<u8>. A wrapper around image::io::Reader::open()

write

Writes an RGB(A)8 or Gray(A)8 Image<u8> into an image file. A wrapper around image::io::Reader::save()