Euler Integration with Applications to Statistical Shape Analysis and Imaging