Numerical Geometry of Images: Theory, Algorithms, and Applications