Automatic image registration method based on gradient phase correlation