Update utils.py
Browse files
utils.py
CHANGED
|
@@ -84,7 +84,7 @@ def convert_dicom_zip_to_nifti(zip_file):
|
|
| 84 |
normalized = (slice_2d - s_min) / (s_max - s_min) * 255
|
| 85 |
|
| 86 |
image = Image.fromarray(
|
| 87 |
-
|
| 88 |
).convert("RGB")
|
| 89 |
|
| 90 |
sequence_images.append((sequence_name, image))
|
|
|
|
| 84 |
normalized = (slice_2d - s_min) / (s_max - s_min) * 255
|
| 85 |
|
| 86 |
image = Image.fromarray(
|
| 87 |
+
normalized.astype(np.uint8)
|
| 88 |
).convert("RGB")
|
| 89 |
|
| 90 |
sequence_images.append((sequence_name, image))
|