wangjin2000 commited on
Commit
309f60d
·
verified ·
1 Parent(s): 97e57b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -167,9 +167,9 @@ def read_and_preprocess_dicom(file_path: str):
167
  # PIL images into NumPy arrays
168
  numpydata = asarray(image_pil)
169
  #convert to cv2 format
170
- image_pil = image_pil.reshape((image_pil.shape[0], image_pil.shape[1], 1))
171
- print("In preprocess dicom:", image_pil.shape)
172
- image = np.array(image_pil)[::-1].copy()
173
 
174
  )
175
 
 
167
  # PIL images into NumPy arrays
168
  numpydata = asarray(image_pil)
169
  #convert to cv2 format
170
+ numpydata = image_pil.reshape((numpydata.shape[0], numpydata.shape[1], 1))
171
+ print("In preprocess dicom:", numpydata.shape)
172
+ image = np.array(numpydata)[::-1].copy()
173
 
174
  )
175