evcxr_image

Crates.ioevcxr_image
lib.rsevcxr_image
version1.1.0
sourcesrc
created_at2018-12-14 04:43:32.124059
updated_at2020-12-25 01:15:37.199395
descriptionDisplays images from the image crate in Evcxr Jupyter
homepage
repositoryhttps://github.com/google/evcxr
max_upload_size
id101835
size3,829
David Lattimore (davidlattimore)

documentation

README

Evcxr image

Integration between Evcxr Jupyter and the image crate. Enables display of images in Evcxr Jupyter kernel.

Currently supports all 8 bit per channel formats:

Example usage:

:dep image = "0.23"
:dep evcxr_image = "1.1"

use evcxr_image::ImageDisplay;

image::ImageBuffer::from_fn(256, 256, |x, y| {
    if (x as i32 - y as i32).abs() < 3 {
        image::Rgb([0, 0, 255])
    } else {
        image::Rgb([0, 0, 0])
    }
})
Commit count: 614

cargo fmt