Spaces:
Sleeping
Sleeping
felipekitamura
commited on
Commit
•
f1d186d
1
Parent(s):
6ab8001
Update face_deid_ct.py
Browse files- face_deid_ct.py +4 -1
face_deid_ct.py
CHANGED
@@ -61,7 +61,10 @@ def load_scan(path):
|
|
61 |
try:
|
62 |
slice_thickness = np.abs(slices[0].ImagePositionPatient[2] - slices[1].ImagePositionPatient[2])
|
63 |
except:
|
64 |
-
|
|
|
|
|
|
|
65 |
|
66 |
for s in slices:
|
67 |
s.SliceThickness = slice_thickness
|
|
|
61 |
try:
|
62 |
slice_thickness = np.abs(slices[0].ImagePositionPatient[2] - slices[1].ImagePositionPatient[2])
|
63 |
except:
|
64 |
+
try:
|
65 |
+
slice_thickness = np.abs(slices[0].SliceLocation - slices[1].SliceLocation)
|
66 |
+
except:
|
67 |
+
slice_thickness = 1.0
|
68 |
|
69 |
for s in slices:
|
70 |
s.SliceThickness = slice_thickness
|