https://hgpu.org/?p=4403
Distance field transform with an adaptive iteration method