We propose a novel spatial phase-shifting interferometry that exploits a genetic algorithm to compensate for geometric errors. Spatial phase-shifting interferometry is more suitable for measuring objects with properties that change rapidly in time than the temporal phase-shifting interferometry. How