Three Dimensional Shape Recovery From Image Focus