add generalized distance transform codes
add generalized distance transform codes
init