Simultaneous calculation of phase distribution and scanning phase shift in phase shifting interferometry