Fitting noisy data with the RANSAC algorithm