FranklinChen / rust-image

Image processing in Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rust Example: image processing with and without threads

This tiny project provides 2 sample Rust applicatons that unsharpen images:

src/bin/linear

Processes images in an images directory sequentially.

src/bin/threaded

Processes images in an images directory in separate threads.

src/bin/rayon

Processes images in an images directory using a work-stealing thread pool.

Building

With a nightly Rust installation:

cargo build --release

Running

With an images directory containing only image files in the top-level directory:

./target/release/linear
./target/release/threaded
./target/release/rayon

About

Image processing in Rust


Languages

Language:Rust 100.0%