Chamfer masks: discrete distance functions, geometrical properties and optimization | IEEE Conference Publication | IEEE Xplore