Simple FFT-based elastic matching for images