From 28bda25da88e02fd43727e07d99620e8b45f37a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Sch=C3=B6nberger?= Date: Wed, 1 May 2013 18:39:16 +0200 Subject: [PATCH] Add is_degenerate to description of ransac iteration --- skimage/measure/fit.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/skimage/measure/fit.py b/skimage/measure/fit.py index b0d58e28..ef81f8f9 100644 --- a/skimage/measure/fit.py +++ b/skimage/measure/fit.py @@ -509,7 +509,8 @@ def ransac(data, model_class, min_samples, residual_threshold, from a subset of inliers from the complete data set. Each iteration performs the following tasks: - 1. Select `min_samples` random samples from the original data. + 1. Select `min_samples` random samples from the original data and check + whether the set of points is valid (`is_degenerate(*data)`). 2. Estimate a model to the random subset (`estimate(*data[random_subset]`). 3. Classify all data as inliers or outliers by calculating the residuals to the estimated model (`residuals(*data)`) - all data samples with