Estimation of global motion parameters by complex linear regression