Recovery of three-dimensional shape of curved objects from a single image