Neemah commited on
Commit
5871972
·
verified ·
1 Parent(s): 3ed2114

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +1 -1
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
- slice_2d_rotated.astype(np.uint8)
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))