mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-05 10:34:17 +08:00
Fix is_degenerate function to accept src and dst arrays separately
This commit is contained in:
@@ -42,13 +42,15 @@ class GeometricTransform(object):
|
||||
raise NotImplementedError()
|
||||
|
||||
@classmethod
|
||||
def is_degenerate(cls, data):
|
||||
def is_degenerate(cls, src, dst):
|
||||
"""Check whether set of points is degenerate.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
data : (N, 2) array
|
||||
N points with `(x, y)` coordinates, respectively.
|
||||
src : (N, 2) array
|
||||
Source coordinates.
|
||||
dst : (N, 2) array
|
||||
Destination coordinates.
|
||||
|
||||
Returns
|
||||
-------
|
||||
|
||||
Reference in New Issue
Block a user