Model-based Camera Pose Estimation by View Generative Learning