About the integrability constraint in a shape-from-shading algorithm