felipekitamura commited on
Commit
6ab8001
1 Parent(s): e091f1f

Update face_deid_ct.py

Browse files
Files changed (1) hide show
  1. face_deid_ct.py +1 -0
face_deid_ct.py CHANGED
@@ -193,6 +193,7 @@ def save_new_dicom_files(new_volume, original_dir, out_path, app="_d"):
193
 
194
  # Read the file
195
  ds = pydicom.dcmread(dicom_file)
 
196
 
197
  # Revert the slope and intercept operation on the slice
198
  new_slice = (new_volume[i] - ds.RescaleIntercept) / ds.RescaleSlope
 
193
 
194
  # Read the file
195
  ds = pydicom.dcmread(dicom_file)
196
+ ds.decompress()
197
 
198
  # Revert the slope and intercept operation on the slice
199
  new_slice = (new_volume[i] - ds.RescaleIntercept) / ds.RescaleSlope