finish ransac and update homography computation