We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
xfm.apply()
1 parent 8dae35f commit 08dc3a3Copy full SHA for 08dc3a3
nitransforms/tests/test_manip.py
@@ -14,6 +14,7 @@
14
RMSE_TOL,
15
APPLY_NONLINEAR_CMD,
16
)
17
+from nitransforms.resampling import apply
18
19
FMT = {"lta": "fs", "tfm": "itk"}
20
@@ -54,7 +55,7 @@ def test_itk_h5(tmp_path, testdata_path):
54
55
assert exit_code == 0
56
sw_moved = nb.load("resampled.nii.gz")
57
- nt_moved = xfm.apply(img_fname, order=0)
58
+ nt_moved = apply(xfm, img_fname, order=0)
59
nt_moved.to_filename("nt_resampled.nii.gz")
60
diff = sw_moved.get_fdata() - nt_moved.get_fdata()
61
# A certain tolerance is necessary because of resampling at borders
0 commit comments