distance_transform function

Compute Euclidean distance function to a specified value.