open distance transform