A unified approach to estimating shape from images