pose recovery and 3d reconstruction