Added parameter to cap the maximum value in the distance transform.