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.
1 parent dd0bcde commit 1c441a0Copy full SHA for 1c441a0
doc/source/dicom/derivations/spm_dicom_orient.py
@@ -40,7 +40,7 @@ def numbered_vector(nrows, symbol_prefix):
40
pos_pat_N = numbered_vector(3, 'T^N')
41
pixel_spacing = symbols(('\Delta{r}', '\Delta{c}'))
42
NZ = Symbol('N')
43
-slice_thickness = Symbol('\Delta{s}')
+slice_spacing = Symbol('\Delta{s}')
44
45
R3 = orient_pat * np.diag(pixel_spacing)
46
R = zeros((4,2))
@@ -74,7 +74,7 @@ def spm_full_matrix(x2, y2):
74
orient[:,2] = orient_cross
75
x2_ss = Matrix((0,0,1,0))
76
y2_ss = zeros((4,1))
77
-y2_ss[:3,:] = orient * Matrix((0,0,slice_thickness))
+y2_ss[:3,:] = orient * Matrix((0,0,slice_spacing))
78
A_ss = spm_full_matrix(x2_ss, y2_ss)
79
80
# many slice case
@@ -91,7 +91,7 @@ def spm_full_matrix(x2, y2):
91
# single slice case
92
single_aff = eye(4)
93
rot = orient
94
-rot_scale = rot * np.diag(pixel_spacing[:] + [slice_thickness])
+rot_scale = rot * np.diag(pixel_spacing[:] + [slice_spacing])
95
single_aff[:3,:3] = rot_scale
96
single_aff[:3,3] = pos_pat_0
97
0 commit comments