mirror of
https://github.com/wassname/scikit-image.git
synced 2026-10-30 13:40:44 +08:00
Comment special case when local patch around is constant
This commit is contained in:
1 parent
e8ab5559d5
commit
7ec58dcaed
1 file changed
+1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user