Elements Of Digital Geometry, Mathematical Morphology, And Discrete Optimization