Discrete Geometry and Mathematical Morphology