farrell236 commited on
Commit
94ce97c
1 Parent(s): 8826fb1

Update apply_window_bbox.py

Browse files
Files changed (1) hide show
  1. apply_window_bbox.py +3 -3
apply_window_bbox.py CHANGED
@@ -38,7 +38,7 @@ def draw_bounding_box(image, bbox):
38
  return image
39
 
40
 
41
- import matplotlib.pyplot as plt
42
 
43
  for idx, row in tqdm(dl_info.iterrows(), total=len(dl_info)):
44
 
@@ -55,8 +55,8 @@ for idx, row in tqdm(dl_info.iterrows(), total=len(dl_info)):
55
  image = (image * 255).astype('uint8')
56
  image = draw_bounding_box(image, bbox)
57
 
58
- plt.imshow(image)
59
- plt.show()
60
 
61
  cv2.imwrite(f'{dir_out}/lesion_{idx}.png', image)
62
 
 
38
  return image
39
 
40
 
41
+ # import matplotlib.pyplot as plt
42
 
43
  for idx, row in tqdm(dl_info.iterrows(), total=len(dl_info)):
44
 
 
55
  image = (image * 255).astype('uint8')
56
  image = draw_bounding_box(image, bbox)
57
 
58
+ # plt.imshow(image)
59
+ # plt.show()
60
 
61
  cv2.imwrite(f'{dir_out}/lesion_{idx}.png', image)
62