Integrability disambiguates surface recovery in two-image photometric stereo

Two images of a Lambertian surface obtained under different illumination conditions, determine the local surface normals up to two possible orientations. We show that for smooth surfaces, the local integrability constraints usually resolve the problem of deciding between the two possibilities. We also provide a complete characterization of the surfaces that remain ambiguous under given illumination conditions.