Digital image processing distance transformation