Add default value for polynomial order

This commit is contained in:
Johannes Schönberger
2012-12-20 15:08:23 +01:00
parent c73c2bbb85
commit 4c4ba8cd1a
+2 -2
View File
@@ -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).
"""