From 7ec58dcaed7729cd1d34d18d204d5c7e39996def Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Sch=C3=B6nberger?= Date: Sun, 11 May 2014 18:20:56 -0400 Subject: [PATCH] Comment special case when local patch around is constant --- skimage/feature/corner.py | 1 + 1 file changed, 1 insertion(+) diff --git a/skimage/feature/corner.py b/skimage/feature/corner.py index 3b22bbb6..96952a09 100644 --- a/skimage/feature/corner.py +++ b/skimage/feature/corner.py @@ -741,6 +741,7 @@ def corner_subpix(image, corners, window_size=11, alpha=0.99): est_dot = np.linalg.solve(N_dot, b_dot) est_edge = np.linalg.solve(N_edge, b_edge) except np.linalg.LinAlgError: + # if image is constant the system is singular corners_subpix[i, :] = np.nan, np.nan continue