Comment special case when local patch around is constant

This commit is contained in:
Johannes Schönberger committed 2014-05-11 18:21:09 -04:00
1 parent e8ab5559d5
commit 7ec58dcaed
1 file changed
+1
+1
View File
@@ -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