I was checking this package out and seeing if it would be able to replace some simple median-filtering code I've got in a package. Previously, I was using ImageFiltering.jl's mapwindow(median!, ...) to accomplish this. My solution using StaticKernels is
using StaticKernels
k = Kernel{(-5:5,-5:5)}(median!)
map(k, extend(img, StaticKernels.ExtensionReplicate()))
This fails due to the lack of Base.iterate for the window view passed to median! (similarly fails for median. If I try Kernel{...}(w -> median(Tuple(w))) the runtime explodes (like, I have to sigint the REPL).
Am I missing something here?
I was checking this package out and seeing if it would be able to replace some simple median-filtering code I've got in a package. Previously, I was using ImageFiltering.jl's
mapwindow(median!, ...)to accomplish this. My solution using StaticKernels isThis fails due to the lack of
Base.iteratefor the window view passed tomedian!(similarly fails formedian. If I tryKernel{...}(w -> median(Tuple(w)))the runtime explodes (like, I have to sigint the REPL).Am I missing something here?