Hierarchical structure-and-motion recovery from uncalibrated images