JuliaImages / ImageFiltering.jl

Julia implementations of multidimensional array convolution and nonlinear stencil operations
Other
99 stars 49 forks source link

Add OpenCL implementation #166

Closed juliohm closed 4 months ago

juliohm commented 4 years ago

I have an OpenCL implementation of imfilter that I've been wanting to port over here for a while. Unfortunately, I can't understand the complex dispatch in imfilter.jl to contribute it myself. I appreciate if you can give some instructions. Also feel free to port it if you feel it is easy: https://github.com/JuliaEarth/ImageQuilting.jl/blob/master/src/imfilter_gpu.jl

Even though OpenCL CLFFT only works with specific sizes of images that are multiple of prime numbers, the code I've implemented above does the necessary padding and works with any image size.