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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -169,8 +169,9 @@ def read_and_preprocess_dicom(file_path: str):
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
-
 
174
  # <class 'numpy.ndarray'>
175
  print(type(numpydata))
176
 
 
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
+ image = np.array(numpydata)[:,:,::-1].copy()
174
+
175
  # <class 'numpy.ndarray'>
176
  print(type(numpydata))
177