File tree Expand file tree Collapse file tree 4 files changed +47
-1
lines changed Expand file tree Collapse file tree 4 files changed +47
-1
lines changed Original file line number Diff line number Diff line change
1
+ 0.99970585 -0.00953967 -0.02228683 -15.19269657
2
+ -0.00599674 0.79344094 -0.60861677 70.83446503
3
+ 0.02348929 0.60857153 0.79315072 15.39251423
4
+ 0.00000000 0.00000000 0.00000000 1.00000000
Original file line number Diff line number Diff line change
1
+ type = 0 # LINEAR_VOX_TO_VOX
2
+ nxforms = 1
3
+ mean = 0.0000 0.0000 0.0000
4
+ sigma = 1.0000
5
+ 1 4 4
6
+ -3.124080896377563e+00 2.981145866215229e-02 8.914728462696075e-02 1.741926879882812e+02
7
+ -1.405486371368170e-02 1.859627604484558e+00 -1.825850725173950e+00 5.312585067749023e+01
8
+ 5.505303665995598e-02 1.426339745521545e+00 2.379452466964722e+00 1.154438781738281e+01
9
+ 0.000000000000000e+00 0.000000000000000e+00 0.000000000000000e+00 9.999998807907104e-01
10
+ src volume info
11
+ valid = 1 # volume info valid
12
+ filename = /home/oesteban/tmp/fmriprep-ds005/fprep-work/fmriprep_wf/single_subject_01_wf/func_preproc_task_mixedgamblestask_run_01_wf/bold_reg_wf/bbreg_wf/bbregister/uni_xform_masked.nii.gz
13
+ volume = 64 64 34
14
+ voxelsize = 3.125000000000000e+00 3.125000000000000e+00 4.000000000000000e+00
15
+ xras = -1.000000000000000e+00 0.000000000000000e+00 0.000000000000000e+00
16
+ yras = 0.000000000000000e+00 1.000000000000000e+00 0.000000000000000e+00
17
+ zras = 0.000000000000000e+00 0.000000000000000e+00 1.000000000000000e+00
18
+ cras = 1.000000000000000e+00 2.800000000000000e+01 -3.100000000000000e+01
19
+ dst volume info
20
+ valid = 1 # volume info valid
21
+ filename = /oak/stanford/groups/russpold/data/openfmri/ds000005/sub-01/anat/sub-01_T1w.nii.gz
22
+ volume = 160 192 192
23
+ voxelsize = 1.000000000000000e+00 1.333333015441895e+00 1.333333015441895e+00
24
+ xras = 1.000000000000000e+00 0.000000000000000e+00 0.000000000000000e+00
25
+ yras = 0.000000000000000e+00 1.000000000000000e+00 0.000000000000000e+00
26
+ zras = 0.000000000000000e+00 0.000000000000000e+00 1.000000000000000e+00
27
+ cras = -1.000000000000000e+00 -5.000030517578125e+00 -1.000030517578125e+00
28
+ subject sub-01
29
+ fscale 0.100000
Original file line number Diff line number Diff line change
1
+ #Insight Transform File V1.0
2
+ #Transform 0
3
+ Transform: MatrixOffsetTransformBase_double_3_3
4
+ Parameters: 0.999706355364118 0.0059967416827344956 0.023489316177446647 0.009539669218827523 0.7934419194347854 -0.6085721629337524 -0.02228683774477952 0.6086173680484374 0.7931513449655613 -5.5388974668589555 -45.57406723091313 -48.80406464758718
5
+ FixedParameters: 0 0 0
Original file line number Diff line number Diff line change 5
5
from .. import linear as _l
6
6
7
7
8
- def test_conversions (data_path ):
8
+ def test_conversions0 (data_path ):
9
9
"""Check conversions between formats."""
10
10
lta = _l .load (data_path / "regressions" / "robust_register.lta" , fmt = "lta" )
11
11
itk = _l .load (data_path / "regressions" / "robust_register.tfm" , fmt = "itk" )
12
12
13
13
assert np .allclose (lta .matrix , itk .matrix )
14
+
15
+
16
+ def test_conversions1 (data_path ):
17
+ """Check conversions between formats."""
18
+ lta = _l .load (data_path / "regressions" / "bbregister.lta" , fmt = "lta" )
19
+ itk = _l .load (data_path / "regressions" / "bbregister.tfm" , fmt = "itk" )
20
+
21
+ assert np .allclose (lta .matrix , itk .matrix )
You can’t perform that action at this time.
0 commit comments