climage

Rust implementation of image processing library with OpenCL.

Core feature

Getting started

```rust use climage; use climage::ImageProc;

fn main() { let context = climage::ClContext::default(); let mut blur = climage::GaussianBlur::new(&context, 2); let img = climage::ClImageBuffer::fromreadonlyhostimage( &context, image::open("examples/lenna.png").unwrap().intorgba8(), ); let mut out = climage::ClImageBuffer::fromwriteonlyhostimage( &context, image::ImageBuffer::, Vec>::new(img.dimensions().0, img.dimensions().1), ); blur.buildkernel(&img, &mut out).run(); let mut outimg = image::ImageBuffer::, Vec>::new(out.dimensions().0, out.dimensions().1); out.data.read(&mut outimg).enq().unwrap(); outimg.save("examples/lenablur.png").unwrap(); } ```

Run example

sh cargo run --release --example gaussian_blur