A computationally efficient algorithm for phase-shifting interferometry with imprecise phase shifts is developed. It permits the use of an uncalibrated phase shifter and is also insensitive to spatial intensity variations. The measurement has both spatial and temporal aspects. Comparisons are made between pixels within the same interferogram, and these comparisons are extended across a set of interferograms by a maximum-minimum procedure. A test experiment is performed and confirms the theoretical results. An additional advantage of the algorithm is that an error measure can be developed. This error measure is used to implement an error correction scheme.