https://hgpu.org/?p=17861
A tutorial on the implementations of linear image filters in CPU and GPU