mirror of
https://github.com/wassname/scikit-image.git
synced 2026-06-29 07:58:39 +08:00
Add default value for polynomial order
This commit is contained in:
@@ -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