mirror of
https://github.com/wassname/scikit-image.git
synced 2026-10-04 13:00:57 +08:00
add test case for polynomial transform initialization
This commit is contained in:
1 parent
195bdc8c00
commit
6ea4827f9d
1 file changed
+7
@@ -142,6 +142,13 @@ def test_polynomial_estimation():
|
||||
tform2 = PolynomialTransform()
|
||||
tform2.estimate(SRC, DST, order=10)
|
||||
assert_array_almost_equal(tform2._params, tform._params)
|
||||
|
||||
|
||||
def test_polynomial_init():
|
||||
tform = estimate_transform('polynomial', SRC, DST, order=10)
|
||||
# init with transformation matrix
|
||||
tform2 = PolynomialTransform(tform._params)
|
||||
assert_array_almost_equal(tform2._params, tform._params)
|
||||
|
||||
|
||||
def test_union():
|
||||
|
||||
Reference in new issue
Block a user