diff options
| author | dpa <dobaipatakyattila@gmail.com> | 2026-11-19 18:33:07 +0200 |
|---|---|---|
| committer | dpa <dobaipatakyattila@gmail.com> | 2026-11-19 18:33:07 +0200 |
| commit | 7f9098906f44ca4defe6c24a39cbf92e41697bd4 (patch) | |
| tree | c3296a4f0c33465a104d04ceeeb6fe5c6b70e88e /conv-images.jl | |
| parent | c8d109420c38fc47238a984c82eab9da3940f093 (diff) | |
Diffstat (limited to 'conv-images.jl')
| -rw-r--r-- | conv-images.jl | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/conv-images.jl b/conv-images.jl new file mode 100644 index 0000000..17ba27a --- /dev/null +++ b/conv-images.jl @@ -0,0 +1,11 @@ +using Images, ImageFiltering, FileIO, ImageView + +img_gray = load("./cameraman.png") .|> Gray + +imshow(img_gray) + +kernel = [1 0 -1; 2 0 -2; 1 0 -1] + +conv_result = imfilter(img_gray, reflect(centered(kernel))) + +imshow(conv_result) |
