MCPcopy Create free account
hub / github.com/SimpleITK/SimpleITK / test_bspline_constructor

Function test_bspline_constructor

Wrapping/Python/tests/sitkTransformTests.py:63–71  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61
62# Test Cases
63def test_bspline_constructor():
64 img1 = sitk.Image([10, 10], sitk.sitkFloat64)
65 img1 += -0.1
66
67 img2 = sitk.Image([10, 10], sitk.sitkFloat64)
68 img2 -= 0.1
69
70 tx = sitk.BSplineTransform([img1, img2], 2)
71 assert tx.GetOrder() == 2
72
73
74def test_bspline_pickle():

Callers

nothing calls this directly

Calls 3

GetOrderMethod · 0.95
ImageMethod · 0.80
BSplineTransformMethod · 0.80

Tested by

no test coverage detected