@@ -237,7 +237,7 @@ You can get the affine and the code using the ``coded=True`` argument to
237237(array([[ -2. , 0. , 0. , 117.86],
238238 [ -0. , 1.97, -0.36, -35.72],
239239 [ 0. , 0.32, 2.17, -7.25],
240- [ 0. , 0. , 0. , 1. ]]), array(1, dtype=int16) )
240+ [ 0. , 0. , 0. , 1. ]]), 1 )
241241
242242You can set the sform with the ``set_sform() `` method of the header and
243243the image.
@@ -256,7 +256,7 @@ Set the affine and code using the ``code`` parameter to ``set_sform()``:
256256(array([[ 3., 0., 0., 0.],
257257 [ 0., 4., 0., 0.],
258258 [ 0., 0., 5., 0.],
259- [ 0., 0., 0., 1.]]), array(4, dtype=int16) )
259+ [ 0., 0., 0., 1.]]), 4 )
260260
261261The qform affine
262262================
@@ -276,7 +276,7 @@ the sform: ``get_qform()``, ``set_qform()``.
276276(array([[ -2. , 0. , 0. , 117.86],
277277 [ -0. , 1.97, -0.36, -35.72],
278278 [ 0. , 0.32, 2.17, -7.25],
279- [ 0. , 0. , 0. , 1. ]]), array(1, dtype=int16) )
279+ [ 0. , 0. , 0. , 1. ]]), 1 )
280280
281281The qform also has a corresponding ``qform_code `` with the same interpretation
282282as the `sform_code `.
@@ -332,7 +332,7 @@ respectively:
332332(array([[ 2., 0., 0., 0.],
333333 [ 0., 2., 0., 0.],
334334 [ 0., 0., 2., 0.],
335- [ 0., 0., 0., 1.]]), array(2, dtype=int16) )
335+ [ 0., 0., 0., 1.]]), 2 )
336336>>> img.get_qform(coded = True )
337337(None, 0)
338338
0 commit comments