def _compute_error(cross_correlation_max, src_amp, target_amp):
 error = (1.0 - ((cross_correlation_max * cross_correlation_max.conj()) / (src_amp * target_amp)))
 return np.sqrt(np.abs(error))

def _compute_error ( cross_correlation_max , src_amp , target_amp ) : error = ( 1.0 - ( ( cross_correlation_max * cross_correlation_max . conj ( ) ) / ( src_amp * target_amp ) ) ) return np . sqrt ( np . abs ( error ) )
compute rms error metric between src_image and target_image .