Obtaining shape from shading information