This looks very close to what `cv::RANSACUpdateNumIters` does. Shouldn't it be used here?