mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-17 11:32:45 +08:00
add missing doc string for polynomial forward transformation
This commit is contained in:
@@ -395,6 +395,19 @@ class PolynomialTransformation(GeometricTransformation):
|
||||
self.coeffs = np.linalg.lstsq(A, b)[0]
|
||||
|
||||
def forward(self, coords):
|
||||
"""Apply forward transformation.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
coords : Nx2 array
|
||||
source coordinates
|
||||
|
||||
Returns
|
||||
-------
|
||||
coords : Nx2 array
|
||||
transformed coordinates
|
||||
|
||||
"""
|
||||
x = coords[:, 0]
|
||||
y = coords[:, 1]
|
||||
u = len(self.coeffs)
|
||||
|
||||
Reference in New Issue
Block a user