Auto-regressive transformation for image alignment