def _compute_phasediff(cross_correlation_max):
 return np.arctan2(cross_correlation_max.imag, cross_correlation_max.real)

def _compute_phasediff ( cross_correlation_max ) : return np . arctan2 ( cross_correlation_max . imag , cross_correlation_max . real )
compute global phase difference between the two images .