Outlier removal in real-time object recognition and pose estimation