The generic viewpoint constraint resolves the generalized bas relief ambiguity