Chris Oswald
commited on
Commit
·
cbcc262
1
Parent(s):
b45106a
debugging
Browse files
SPIDER.py
CHANGED
@@ -503,7 +503,8 @@ class SPIDER(datasets.GeneratorBasedBuilder):
|
|
503 |
# Convert .mha mask to original size numeric array
|
504 |
mask_array_original = sitk.GetArrayFromImage(mask)
|
505 |
|
506 |
-
# Convert to Uint8 (range is [0,225],
|
|
|
507 |
mask_array_standardized = np.array(mask_array_original, dtype='uint8')
|
508 |
|
509 |
# Convert .mha mask to standardized numeric array
|
|
|
503 |
# Convert .mha mask to original size numeric array
|
504 |
mask_array_original = sitk.GetArrayFromImage(mask)
|
505 |
|
506 |
+
# Convert to Uint8 (existing range is [0,225],
|
507 |
+
# so all values should fit in Uint8)
|
508 |
mask_array_standardized = np.array(mask_array_original, dtype='uint8')
|
509 |
|
510 |
# Convert .mha mask to standardized numeric array
|