June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
7
Task/Median-filter/Julia/median-filter.julia
Normal file
7
Task/Median-filter/Julia/median-filter.julia
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
using Images, ImageFiltering, FileIO
|
||||
Base.isless(a::RGB{T}, b::RGB{T}) where T =
|
||||
red(a) < red(b) || green(a) < green(b) || blue(a) < blue(b)
|
||||
Base.middle(x::RGB) = x
|
||||
|
||||
img = load("data/lenna100.jpg")
|
||||
mapwindow(median!, img, (3, 3))
|
||||
Loading…
Add table
Add a link
Reference in a new issue