A mathematical framework unifying various Shape from Shading approaches