@@ -237,7 +237,7 @@ You can get the affine and the code using the ``coded=True`` argument to
237
237
(array([[ -2. , 0. , 0. , 117.86],
238
238
[ -0. , 1.97, -0.36, -35.72],
239
239
[ 0. , 0.32, 2.17, -7.25],
240
- [ 0. , 0. , 0. , 1. ]]), array(1, dtype=int16) )
240
+ [ 0. , 0. , 0. , 1. ]]), 1 )
241
241
242
242
You can set the sform with the ``set_sform() `` method of the header and
243
243
the image.
@@ -256,7 +256,7 @@ Set the affine and code using the ``code`` parameter to ``set_sform()``:
256
256
(array([[ 3., 0., 0., 0.],
257
257
[ 0., 4., 0., 0.],
258
258
[ 0., 0., 5., 0.],
259
- [ 0., 0., 0., 1.]]), array(4, dtype=int16) )
259
+ [ 0., 0., 0., 1.]]), 4 )
260
260
261
261
The qform affine
262
262
================
@@ -276,7 +276,7 @@ the sform: ``get_qform()``, ``set_qform()``.
276
276
(array([[ -2. , 0. , 0. , 117.86],
277
277
[ -0. , 1.97, -0.36, -35.72],
278
278
[ 0. , 0.32, 2.17, -7.25],
279
- [ 0. , 0. , 0. , 1. ]]), array(1, dtype=int16) )
279
+ [ 0. , 0. , 0. , 1. ]]), 1 )
280
280
281
281
The qform also has a corresponding ``qform_code `` with the same interpretation
282
282
as the `sform_code `.
@@ -332,7 +332,7 @@ respectively:
332
332
(array([[ 2., 0., 0., 0.],
333
333
[ 0., 2., 0., 0.],
334
334
[ 0., 0., 2., 0.],
335
- [ 0., 0., 0., 1.]]), array(2, dtype=int16) )
335
+ [ 0., 0., 0., 1.]]), 2 )
336
336
>>> img.get_qform(coded = True )
337
337
(None, 0)
338
338
0 commit comments