See e.g. https://github.com/skosch/anisotropic-distance-transform
See e.g.
https://github.com/skosch/anisotropic-distance-transform