-
-
Notifications
You must be signed in to change notification settings - Fork 26.1k
Closed
Description
Within the RANSAC algorithm, a residual threshold is calculated:
residual_threshold = np.median(np.abs(y - np.median(y))
If more than half of the values of y are equal to the median of y, this returns a residual threshold of 0. In that case, the line
inlier_mask_subset = residuals_subset < residual_threshold
always returns zero inliers, causing a value error since inlier_mask_best
is always None.