https://hgpu.org/?p=10249
Fast Morphological Image Processing on GPU using CUDA