Skip to content

guillaume-gomez/tilt-shift-rust

Repository files navigation

tilt-shift-rust

I decided to learn Rust by using the library Image and implement a tilt-shift algorithm.

Example

Original

original

After tilt shift

original

Original

original

After tilt shift

original

Compile

cargo build

Execute

cargo run  -- -b blur_level  -s saturation_level  -f filename_source -o filename_target -y originOfTheZoneOfTheInterest -h heightOfTheZoneOfTheInterest
#example
cargo run  -- -b 10.0  -c 20.0  -f "test.png" -o "result.png" -y 100 -h 50 -w "myFolder"

cargo run  -- -b 2  -s 10  -f "velodrome.jpg" -o "velodromeTiltShift.png" -y 100 -h 200

Help

cargo run -- -h

About

Perform a Tilt shift effect coding in rust

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages