wangjin2000 commited on
Commit
57b1f09
·
verified ·
1 Parent(s): 061f56b

Update app.py

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