Skip to content

Commit

Permalink
add fast blur example
Browse files Browse the repository at this point in the history
  • Loading branch information
torfmaster committed Aug 5, 2024
1 parent 0166898 commit 85eeb50
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/fast_blur/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lenna_blurred.png
Binary file added examples/fast_blur/lenna.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions examples/fast_blur/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
use image::ImageReader;

fn main() {
let img = ImageReader::open("examples/fast_blur/lenna.png")
.unwrap()
.decode()
.unwrap();

let img2 = img.fast_blur(10.0);

img2.save("examples/fast_blur/lenna_blurred.png").unwrap();
}
Binary file added out.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 85eeb50

Please sign in to comment.