mirror of
https://github.com/wassname/scikit-image.git
synced 2026-10-02 12:41:06 +08:00
Add default value for polynomial order
This commit is contained in:
1 parent
c73c2bbb85
commit
4c4ba8cd1a
1 file changed
+2
-2
@@ -604,7 +604,7 @@ class PolynomialTransform(GeometricTransform):
|
||||
raise ValueError("invalid shape of transformation parameters")
|
||||
self._params = params
|
||||
|
||||
def estimate(self, src, dst, order):
|
||||
def estimate(self, src, dst, order=2):
|
||||
"""Set the transformation matrix with the explicit transformation
|
||||
parameters.
|
||||
|
||||
@@ -645,7 +645,7 @@ class PolynomialTransform(GeometricTransform):
|
||||
Source coordinates.
|
||||
dst : (N, 2) array
|
||||
Destination coordinates.
|
||||
order : int
|
||||
order : int, optional
|
||||
Polynomial order (number of coefficients is order + 1).
|
||||
|
||||
"""
|
||||
|
||||
Reference in new issue
Block a user